import React from 'react'; import { Link } from 'react-router-dom'; export interface ItemProps { children?: JSX.Element | JSX.Element[] | string | null | undefined; icon?: JSX.Element; label?: string; route?: string; } export const Item = ({ children, icon, label, route }: ItemProps): JSX.Element => { return ( {icon ? ( {icon} ) : null} {children ?? label} ); }; export default Item;