import React from 'react'; import { useTranslation } from '@/hooks/useI18n.tsx'; import { canParticipateInResourceMatching, getOrganizationSubtypeLabel, } from '@/schemas/organizationSubtype.ts'; import { Organization } from '@/types.ts'; import { MapPin } from 'lucide-react'; import Badge from '@/components/ui/Badge.tsx'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import { Flex, Grid, Stack } from '@/components/ui/layout'; import ContactDetails from '@/components/organization/ContactDetails.tsx'; import KeyMetrics from '@/components/organization/KeyMetrics.tsx'; interface OrganizationDetailsGridProps { organization: Organization; } const OrganizationDetailsGrid = ({ organization }: OrganizationDetailsGridProps) => { const { t } = useTranslation(); return ( {t('organizationPage.details')}

{t('organizationPage.keyMetrics')}

{organization.Subtype && (
{t('organizationPage.organizationType')}: {getOrganizationSubtypeLabel(organization.Subtype)} {canParticipateInResourceMatching(organization.Subtype) && ( {t('organizationPage.participatesInMatching')} )}
)}

{t('organizationPage.contactAndLocation')}

{organization.Address && ( {organization.Address} )}
); }; export default React.memo(OrganizationDetailsGrid);