build ok,

This commit is contained in:
louiscklaw
2025-04-14 09:26:24 +08:00
commit 6c931c1fe8
770 changed files with 63959 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import { FileIcon } from '@/components/core/file-icon';
import type { ItemType } from './types';
export interface ItemIconProps {
extension?: string;
type: ItemType;
}
export function ItemIcon({ type, extension }: ItemIconProps): React.JSX.Element {
return type === 'folder' ? <FolderIcon /> : <FileIcon extension={extension} />;
}
function FolderIcon(): React.JSX.Element {
return (
<Box
sx={{
alignItems: 'center',
display: 'inline-flex',
flex: '0 0 auto',
justifyContent: 'center',
width: '48px',
height: '48px',
}}
>
<Box alt="Folder" component="img" src="/assets/icon-folder.svg" sx={{ height: '100%', width: 'auto' }} />
</Box>
);
}