import { IconButton } from '@chakra-ui/button';
import { Tooltip } from '@chakra-ui/tooltip';
import { FiSettings } from 'react-icons/fi';

export default function SettingsIconBtn(props) {
  const { clickhandler, ...rest } = props;
  return (
    <Tooltip label='Settings'>
      <IconButton
        size={props.size || 'xs'}
        icon={<FiSettings />}
        colorScheme='white'
        onClick={clickhandler}
        _focus={{ boxShadow: 'none' }}
        {...rest}
      />
    </Tooltip>
  );
}
