import { Head, Link } from '@inertiajs/react'; import { Plus, Store as StoreIcon } from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from '@/components/ui/card'; import { dashboard } from '@/routes'; import { create, show } from '@/routes/stores'; import PlanNotice from '@/components/plan-notice'; import type { Store, Usage } from '@/types'; export default function Dashboard({ stores, usage, }: { stores: Store[]; usage: Usage; }) { return ( <>

Your stores

Create a store, then let AI design it for you.

{stores.length > 0 && ( )}
{stores.length === 0 ? (

No stores yet

Tell us about your brand and we will set up your first online store.

) : (
{stores.map((store) => (
{store.name} {store.status_label}
{store.category_label}

{store.description}

))}
)}
); } Dashboard.layout = { breadcrumbs: [ { title: 'Dashboard', href: dashboard(), }, ], };