TTime/frontend/src/Components/BasicWindow.tsx

23 lines
534 B
TypeScript
Raw Normal View History

2024-03-07 11:48:34 +01:00
import Header from "./Header";
import Footer from "./Footer";
2024-03-07 11:48:34 +01:00
function BasicWindow({
username,
content,
buttons,
}: {
username: string;
content: React.ReactNode;
buttons: React.ReactNode;
}): JSX.Element {
return (
<div className="font-sans flex flex-col h-screen bg-white border-2 border-black overflow-auto pt-[110px]">
<Header username={username} />
2024-03-07 11:48:34 +01:00
<div className="flex flex-col items-center flex-grow">{content}</div>
<Footer>{buttons}</Footer>
</div>
);
}
2024-03-07 11:48:34 +01:00
export default BasicWindow;