Primer commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Switch } from "@/components/ui/switch";
|
||||
import { Calendar } from "@/components/ui/calendar";
|
||||
|
||||
export default function DashboardPage() {
|
||||
const [aiEnabled, setAiEnabled] = useState(true);
|
||||
const [date, setDate] = useState<Date | undefined>(new Date());
|
||||
|
||||
return (
|
||||
<div className="container mx-auto p-6 max-w-6xl space-y-6">
|
||||
<header className="flex justify-between items-center mb-8">
|
||||
<div>
|
||||
<h1 className="text-3xl font-heading font-bold text-primary">EnFlow Clinical Dashboard</h1>
|
||||
<p className="text-muted-foreground mt-1 text-sm">Panel de control omnicanal</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
{/* Omnichannel Console Placeholder */}
|
||||
<Card className="col-span-1 md:col-span-2">
|
||||
<CardHeader>
|
||||
<CardTitle className="font-heading">Consola Omnicanal</CardTitle>
|
||||
<CardDescription>Interacciones recientes (WhatsApp, Web, IG)</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="h-[300px] bg-muted/30 rounded-18px flex items-center justify-center border border-border p-4">
|
||||
<p className="text-sm text-placeholder text-muted-foreground">No hay interacciones pendientes.</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
<CardFooter className="flex justify-between items-center">
|
||||
<span className="text-sm font-medium">Estado del Agente AI</span>
|
||||
<div className="flex items-center space-x-2">
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{aiEnabled ? 'Automatización Activa' : 'Desactivado (Manual Override)'}
|
||||
</span>
|
||||
<Switch checked={aiEnabled} onCheckedChange={setAiEnabled} />
|
||||
</div>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
||||
{/* Calendar Management Placeholder */}
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="font-heading">Agenda Clínica</CardTitle>
|
||||
<CardDescription>Gestión de disponibilidad</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="flex justify-center flex-col gap-4">
|
||||
<Calendar
|
||||
mode="single"
|
||||
selected={date}
|
||||
onSelect={setDate}
|
||||
className="rounded-md border mx-auto"
|
||||
/>
|
||||
<Button className="w-full mt-4 bg-primary text-primary-foreground hover:opacity-90">
|
||||
Sincronizar Supabase
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user