MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / SheetDataEditorHeader

Function SheetDataEditorHeader

src/sheet/components/SheetDataEditorHeader.tsx:11–30  ·  view source on GitHub ↗
({ column }: Props)

Source from the content-addressed store, hash-verified

9}
10
11export 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}

Callers

nothing calls this directly

Calls 4

useTranslationsFunction · 0.90
isColumnReadOnlyFunction · 0.90
fieldIsRequiredFunction · 0.90
tFunction · 0.85

Tested by

no test coverage detected