({ column }: Props)
| 9 | } |
| 10 | |
| 11 | export default function SheetDataEditorHeader({ column }: Props) { |
| 12 | const { t } = useTranslations(); |
| 13 | const isReadOnly = isColumnReadOnly(column); |
| 14 | |
| 15 | return ( |
| 16 | <div |
| 17 | className="flex items-center" |
| 18 | title={isReadOnly ? t('sheet.readOnly') : undefined} |
| 19 | > |
| 20 | {isReadOnly && ( |
| 21 | <div className="relative mr-3 h-5 w-5"> |
| 22 | <XMarkIcon className="absolute top-0 left-0 h-5 w-5 text-gray-400" /> |
| 23 | |
| 24 | <PencilIcon className="absolute top-0 left-0 h-5 w-5 text-gray-500" /> |
| 25 | </div> |
| 26 | )} |
| 27 | {column.label} {fieldIsRequired(column) && '*'} |
| 28 | </div> |
| 29 | ); |
| 30 | } |
nothing calls this directly
no test coverage detected