MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / IconReverse

Function IconReverse

frontend/src/components/recordPage/index.tsx:48–64  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

46 });
47 }
48 const IconReverse = (name: string) => {
49 name = name.split('.').pop() as string
50 switch (name) {
51 case 'pdf':
52 return <PdfIcon style={{ marginRight: '4px' }} />
53 case 'txt':
54 return <TxtIcon style={{ marginRight: '4px' }} />
55 case 'docx':
56 return <DocsIcon style={{ marginRight: '4px' }} />
57 case 'html':
58 return <HtmlIcon style={{ marginRight: '4px' }} />
59 case 'md':
60 return <MdIcon style={{ marginRight: '4px' }} />
61 default:
62 return <TextIcon />
63 }
64 }
65 const columns = [
66 {
67 title: 'Record',

Callers 1

RecordPageFunction · 0.85

Calls 1

popMethod · 0.45

Tested by

no test coverage detected