@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
12 lines (11 loc) • 391 B
TypeScript
import { IconProps } from '../../../Icon/Icon';
export declare const FILE_ICON_EXTENSIONS: {
nonDisplayableImages: string[];
documents: string[];
videos: string[];
archives: string[];
};
/**
* Determines the appropriate icon name for a file based on its type and extension.
*/
export declare const getFileIconName: (file: File, fileExtension: string) => IconProps["name"];