mocksaml/components/Layout.tsx

16 lines
365 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">
<h1 className="text-2xl">Mock SAML IdP</h1>
</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
);
}