22 lines
591 B
TypeScript
22 lines
591 B
TypeScript
import { Suspense } from "react";
|
|
|
|
import { AppAuthGate } from "@/components/layout/app-auth-gate";
|
|
import { DailyReminderProvider } from "@/components/reminders/daily-reminder-provider";
|
|
import { InAppReminderBanner } from "@/components/reminders/in-app-reminder-banner";
|
|
|
|
export default function AppLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<Suspense fallback={<div className="min-h-svh bg-background" />}>
|
|
<AppAuthGate>
|
|
<DailyReminderProvider />
|
|
<InAppReminderBanner />
|
|
{children}
|
|
</AppAuthGate>
|
|
</Suspense>
|
|
);
|
|
}
|