import { requireStaffAuth } from "@/lib/staff-auth";
import AnalyticsDashboard from "@/components/staff/AnalyticsDashboard";

export const metadata = {
  title: "Analytics - Staff Dashboard",
  description: "Site analytics and performance metrics",
};

export default async function AnalyticsPage() {
  const user = await requireStaffAuth();

  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-3xl font-bold text-brand-ink">Analytics</h1>
        <p className="text-gray-600 mt-1">
          Site traffic and conversion metrics
        </p>
      </div>

      <AnalyticsDashboard user={user} />
    </div>
  );
}
