export const DOCUMENT_TYPES = [
  { value: 'documentation', label: 'Documentation' },
  { value: 'devis', label: 'Devis' },
  { value: 'facture', label: 'Facture' },
  { value: 'plan', label: 'Plan' },
  { value: 'photo', label: 'Photo' },
  { value: 'autre', label: 'Autre' },
] as const

export type DocumentTypeValue = (typeof DOCUMENT_TYPES)[number]['value']

export const getDocumentTypeLabel = (value: string): string => {
  const found = DOCUMENT_TYPES.find((t) => t.value === value)
  return found?.label ?? value
}
