import { cloneElement } from 'react' const CustomIconMap = { arc: ( ), arrowDown: ( ), arrowLeft: ( ), arrowRight: ( ), arrowUp: ( ), checkmark: ( ), clipboardCheckmark: ( ), clipboardPlus: ( ), close: ( ), equal: ( ), exportFile: ( ), extrude: ( ), file: ( ), filePlus: ( ), folder: ( ), folderPlus: ( ), gear: ( ), horizontal: ( ), horizontalDash: ( ), kcl: ( ), line: ( ), 'make-variable': ( ), menu: ( ), move: ( ), network: ( ), networkCrossedOut: ( ), parallel: ( ), person: ( ), plus: ( ), refresh: ( ), search: ( ), settings: ( ), sketch: ( ), 'three-dots': ( ), vertical: ( ), } as const export type CustomIconName = keyof typeof CustomIconMap export const CustomIcon = ({ name, ...props }: { name: CustomIconName } & React.SVGProps) => cloneElement(CustomIconMap[name], props)