import { getUser } from '@/lib/session';
import { redirect } from 'next/navigation';
import { UserHeader } from '@/components/UserHeader';
import { SmokingAidsContent } from '@/components/SmokingAidsContent';

export default async function SmokingAidsPage() {
    const user = await getUser();

    if (!user) {
        redirect('/login');
    }

    return (
        <div className="min-h-screen">
            <UserHeader user={user} />
            <SmokingAidsContent />
        </div>
    );
}
