shellphone.app/app/settings/components/settings-layout.tsx

28 lines
676 B
TypeScript

import type { FunctionComponent } from "react";
import { useRouter } from "blitz";
import { IoChevronBack } from "react-icons/io5";
import Layout from "../../core/layouts/layout";
const pageTitle = "User Settings";
const SettingsLayout: FunctionComponent = ({ children }) => {
const router = useRouter();
return (
<Layout title={pageTitle}>
<header className="px-4 sm:px-6 md:px-0">
<header className="flex">
<span className="flex items-center cursor-pointer" onClick={router.back}>
<IoChevronBack className="h-8 w-8 mr-2" /> Back
</span>
</header>
</header>
<main>{children}</main>
</Layout>
);
};
export default SettingsLayout;