import { redirect } from 'next/navigation';
import { getSession } from '@/lib/session';
import { SubstanceTrackingPage } from '@/components/SubstanceTrackingPage';

export default async function MarijuanaTrackingPage() {
  const session = await getSession();

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

  return <SubstanceTrackingPage user={session.user} substance="weed" />;
}
