turash/bugulma/frontend/components/organization/KeyMetrics.tsx
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- Remove nested git repository from bugulma/frontend/.git
- Add all frontend files to main repository tracking
- Convert from separate frontend/backend repos to unified monorepo
- Preserve all frontend code and development history as tracked files
- Eliminate nested repository complexity for simpler development workflow

This creates a proper monorepo structure with frontend and backend
coexisting in the same repository for easier development and deployment.
2025-11-25 06:02:57 +01:00

52 lines
1.6 KiB
TypeScript

import React from 'react';
import { useTranslation } from '@/hooks/useI18n.tsx';
import { Organization } from '@/types.ts';
import { BadgeCheck, Briefcase } from 'lucide-react';
import MetricItem from '@/components/ui/MetricItem.tsx';
import { Grid } from '@/components/ui/layout';
interface KeyMetricsProps {
organization: Organization;
}
const KeyMetrics = ({ organization }: KeyMetricsProps) => {
const { t } = useTranslation();
return (
<Grid cols={{ sm: 2 }} gap="md">
<MetricItem
icon={
<BadgeCheck className={`h-5 w-5 ${organization.Verified ? 'text-success' : 'text-muted-foreground'}`} />
}
label={t('organizationPage.verifiedStatus')}
value={
<span
className={`font-semibold ${organization.Verified ? 'text-success' : 'text-muted-foreground'}`}
>
{organization.Verified
? t('organizationPage.verified')
: t('organizationPage.notVerified')}
</span>
}
/>
{organization.Website && (
<MetricItem
icon={<Briefcase className="h-4 h-5 text-current w-4 w-5" />}
label={t('organizationPage.website')}
value={
<a
href={organization.Website}
target="_blank"
rel="noopener noreferrer"
className="text-primary hover:underline"
>
{organization.Website.replace(/^(https?:\/\/)?(www\.)?/, '')}
</a>
}
/>
)}
</Grid>
);
};
export default React.memo(KeyMetrics);