import { PropsWithChildren } from 'react' import Icon from '../../../shared/components/icon' type Props = { onClick?: () => void icon: { type: string fw?: boolean } disabled?: boolean disabledAccesibilityText?: string } export default function LeftMenuButton({ children, onClick, icon, disabled = false, disabledAccesibilityText, }: PropsWithChildren) { if (disabled) { return (
{children} {disabledAccesibilityText ? ( {disabledAccesibilityText} ) : null}
) } return ( ) }