import { Link, Outlet } from 'react-router';

const RootLayout = () => {
  return (
    <>
      <nav>
        <Link to="/">首页</Link>
        {' | '}
        <Link to="/about">关于</Link>
      </nav>
      <main>
        <Outlet />
      </main>
    </>
  );
};

export default RootLayout;
