import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from '@/views/components/ui/card'; import { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, type ChartConfig, } from '@/views/components/ui/chart'; import { Progress } from '@/views/components/ui/progress'; import { TrendingUp } from 'lucide-react'; import { Bar, BarChart, CartesianGrid, Line, LineChart, Pie, PieChart, XAxis, } from 'recharts'; import { Header } from './views/components/header'; export const description = 'A stacked bar chart with a legend'; export function App() { const stats = [ { title: 'Média de Consumo (R$)', value: 'R$ 0,00', description: '', progress: 44.6, }, { title: 'Total de KM Percorridos', value: '0 KM', description: '', progress: 30.6, }, { title: 'Viagens Realizadas no Mês', value: '0', description: '', progress: 24.8, }, ]; const evolutionConfig = { price: { label: 'Preço', color: '#0e233d', }, } satisfies ChartConfig; const evolutionData = [ { month: 'Shell', price: 186 }, { month: 'Ipiranga', price: 305 }, { month: 'BR', price: 237 }, ]; const bestPricesConfig = { price: { label: 'Preço', color: '#0e233d', }, } satisfies ChartConfig; const bestPricesData = [ { station: 'Shell', price: 5.42 }, { station: 'Ipiranga', price: 5.35 }, { station: 'BR', price: 5.38 }, { station: 'Ale', price: 5.3 }, ]; const vehicleStatusConfig = { active: { label: 'Ativos', color: '#0e233d', }, maintenance: { label: 'Manutenção', color: '#173b63', }, inactive: { label: 'Inativos', color: '#154677', }, reserved: { label: 'Reservados', color: '#145190', }, } satisfies ChartConfig; const vehicleStatusData = [ { status: 'active', count: 45, fill: '#0e233d' }, { status: 'maintenance', count: 12, fill: '#173b63' }, { status: 'inactive', count: 8, fill: '#154677' }, { status: 'reserved', count: 15, fill: '#145190' }, ]; const mileageConfig = { company: { label: 'Frota Empresa', color: '#0e233d', }, rented: { label: 'Frota Terceirizada', color: '#173b63', }, } satisfies ChartConfig; const mileageData = [ { month: 'Jan', company: 1200, rented: 800 }, { month: 'Fev', company: 1350, rented: 750 }, { month: 'Mar', company: 1100, rented: 900 }, { month: 'Abr', company: 1400, rented: 600 }, { month: 'Mai', company: 1250, rented: 850 }, { month: 'Jun', company: 1300, rented: 700 }, ]; return (
{stat.description}