import { useTranslation } from '@/contexts/language'; import { cn } from '@/lib/utils'; interface LabProfileProgressProps { hasPhoto: boolean; hasBio: boolean; hasSkills: boolean; hasRate: boolean; hasLocation: boolean; hasContact: boolean; } /** * Compact "profile completeness" bar for the long Lab offer forms. Not a wizard * — the form stays in one scroll — but it shows what's still worth adding so an * incomplete listing isn't published blind. */ export function LabProfileProgress(props: LabProfileProgressProps) { const { t } = useTranslation(); const steps = [ { label: t('labUi.progress.photo'), done: props.hasPhoto }, { label: t('labUi.progress.bio'), done: props.hasBio }, { label: t('labUi.progress.skills'), done: props.hasSkills }, { label: t('labUi.progress.rate'), done: props.hasRate }, { label: t('labUi.progress.location'), done: props.hasLocation }, { label: t('labUi.progress.contact'), done: props.hasContact }, ]; const done = steps.filter((s) => s.done).length; const pct = Math.round((done / steps.length) * 100); return (