import { useTranslation } from 'react-i18next'; import { GenericResourceUsage } from '../../../../components/GenericResourceUsage'; export type SeatsCapUsageProps = { limit: number; members: number; }; const SeatsCapUsage = ({ limit, members }: SeatsCapUsageProps) => { const { t } = useTranslation(); const percentage = Math.max(0, Math.min((100 / limit) * members, 100)); const seatsLeft = Math.max(0, limit - members); return ( ); }; export default SeatsCapUsage;