import * as React from 'react' import { Button, IconButton } from '@mui/material' import { SxProps } from '@mui/system' import { useIsMobile } from '@/app/hooks' import { DelegateIcon } from '@/app/icons/DelevateSVG' export const DelegateIconButton: FCWithChildren<{ size?: 'small' | 'medium' disabled?: boolean tooltip?: React.ReactNode sx?: SxProps onDelegate: () => void }> = ({ onDelegate, sx, disabled, size = 'medium' }) => { const isMobile = useIsMobile() const handleOnDelegate = () => { onDelegate() } if (isMobile) { return ( ) } return ( ) }