"use client";

import { useAuth } from "./AuthProvider";
import { Navigation } from "./Navigation";

export function AppShell({ children }: { children: React.ReactNode }) {
  const { user } = useAuth();

  if (!user) {
    return <>{children}</>;
  }

  return (
    <>
      <main className="max-w-lg mx-auto px-4 py-6 pb-24">{children}</main>
      <Navigation />
    </>
  );
}
