MCPcopy Create free account
hub / github.com/code100x/cms / getLabelClassName

Function getLabelClassName

src/components/admin/AddContent.tsx:51–54  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

49 const [loading, setLoading] = useState<boolean>(false);
50
51 const getLabelClassName = (value: string) => {
52 return `flex gap-1 p-4 rounded-lg items-center space-x-2 ${type === value ? 'border-[3px] border-blue-500' : 'border-[3px]'
53 }`;
54 };
55
56 const formatInputJSON = (value: string) => {
57 const valWithout = value.replaceAll("\\", "").slice(1, -1);

Callers 1

AddContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected