TTime/frontend/src/Components/BasicWindow.tsx

18 lines
548 B
TypeScript
Raw Normal View History

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