Files
spacedrive/interface/components/Folder.tsx
Utku 73256b35c7 [ENG-660] Remove react-simple-icons & use png instead of svg for icons (#870)
* use image instead of svg (mobile)

* use image instead of svg (desktop)

* remove unused svgs

* add brand svgs

* use brand svgs on landing

* use on desktop
2023-05-26 15:57:56 +00:00

33 lines
570 B
TypeScript

import { Folder as Folder_Dark, Folder_Light } from '@sd/assets/icons';
interface FolderProps {
/**
* Append additional classes to the underlying SVG
*/
className?: string;
/**
* Render a white folder icon
*/
white?: boolean;
/**
* The size of the icon to show -- uniform width and height
*/
size?: number;
}
export function Folder(props: FolderProps) {
const { size = 24 } = props;
return (
<img
className={props.className}
width={size}
height={size}
src={props.white ? Folder_Light : Folder_Dark}
alt="Folder icon"
/>
);
}