import Button from '@/components/ui/Button.tsx'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import { EmptyState } from '@/components/ui/EmptyState.tsx'; import { Flex, Grid } from '@/components/ui/layout'; import { Briefcase } from 'lucide-react'; type Org = any; type Props = { organizations: Org[] | null | undefined; onNavigate: (path: string) => void; t: (key: string) => string; }; const MyOrganizationsSection = ({ organizations, onNavigate, t }: Props) => { return ( {t('dashboard.myOrganizations')} {organizations && organizations.length > 0 && ( )} {organizations && organizations.length > 0 ? ( {organizations.slice(0, 3).map((org: any) => (
onNavigate(`/organization/${org.ID}`)} >

{org.Name}

{org.sector}
{org.subtype}
))}
) : ( } title={t('dashboard.noOrganizationsTitle')} description={t('dashboard.noOrganizationsDesc')} action={{ label: t('dashboard.createFirstOrganization'), onClick: () => onNavigate('/map'), }} /> )}
); }; export default MyOrganizationsSection;