first commit

This commit is contained in:
rodrigo committed 2025-04-10 23:07:21 -03:00
commit c9fb67e751
423 files changed
+53287

No files matched your search

@@ -0,0 +1,32 @@
import React from 'react';
import { useQuery } from 'react-query';
import api from '../../../services/api';
import { Card } from '../Card';
export const ProcessosStats: React.FC = () => {
const { data: stats } = useQuery('processosStats', async () => {
const response = await api.get('/dashboard/processos/stats');
return response.data;
});
return (
<div className="grid gap-4">
<Card
title="Total de Processos"
value={stats?.total || 0}
trend={stats?.crescimento || 0}
icon="DocumentText"
/>
<Card
title="Por Tribunal"
items={stats?.porTribunal || []}
type="list"
/>
<Card
title="Por Status"
items={stats?.porStatus || []}
type="list"
/>
</div>
);
};