import navigationIcon from '@/configs/navigation-icon.config' import type { ElementType, ComponentPropsWithRef } from 'react' type VerticalMenuIconProps = { icon: string } export const Icon = ({ component, ...props }: { header: T } & ComponentPropsWithRef) => { const Component = component return } const VerticalMenuIcon = ({ icon }: VerticalMenuIconProps) => { if (typeof icon !== 'string' && !icon) { return <> } return {navigationIcon[icon]} } export default VerticalMenuIcon