import LiveNotification from '@/components/live-notifications';
import { Head } from '@inertiajs/react';
import { PropsWithChildren } from 'react';
import Footer from './footer';
import Header from './header';

export default function PageLayout({ children, title }: PropsWithChildren<{ title?: string }>) {
    return (
        <>
            <Head title={title} />

            <div className="min-h-screen bg-white">
                <Header />
                {children}
                <Footer />
                <LiveNotification />
            </div>
        </>
    );
}
