import Link from "next/link"; import { ArrowRight, Sparkles } from "lucide-react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; /** * Small server component the overview can render when `user.onboardingCompletedAt` is null. * Pure presentation — pass `completedAt` and it returns null when onboarding is done. */ export function OnboardingBanner({ completedAt, userName, className }: { completedAt?: Date | null; userName?: string | null; className?: string }) { if (completedAt) return null; const first = userName?.trim().split(/\s+/)[0]; return (
{first ? `Welcome, ${first}.` : "Welcome to Fetcha."} Finish setting up in about two minutes.
Create an API key, run your first request and grab the generated code for your stack.
); }