mocksaml/components/Layout.tsx

16 lines
375 B
TypeScript
Raw Normal View History

2022-02-18 08:56:42 +00:00
import type { ReactNode } from "react";
2022-02-17 06:05:50 +00:00
2022-02-18 08:56:42 +00:00
type LayoutProps = {
children: ReactNode;
};
export default function Layout({ children }: LayoutProps) {
2022-02-17 06:05:50 +00:00
return (
<>
2022-02-18 08:56:42 +00:00
<header className="py-5 px-20">
2022-02-18 12:52:59 +00:00
<h1 className="text-3xl font-bold">Mock SAML IdP</h1>
2022-02-18 08:56:42 +00:00
</header>
2022-02-18 12:52:24 +00:00
<main className="h-[calc(100%_-_76px)] overflow-auto">{children}</main>
2022-02-17 06:05:50 +00:00
</>
2022-02-18 08:56:42 +00:00
);
}