import React from 'react';
import { IconButton } from '@chakra-ui/button';
import { Tooltip } from '@chakra-ui/tooltip';
import { FiChevronsDown } from '@react-icons/all-files/fi/FiChevronsDown';

export default function ExpandBtn(props) {
  const { clickhandler, size } = props;
  return (
    <Tooltip label='Expand all'>
      <IconButton
        size={size || 'xs'}
        icon={<FiChevronsDown />}
        colorScheme='white'
        variant='outline'
        onClick={clickhandler}
        _focus={{ boxShadow: 'none' }}
      />
    </Tooltip>
  );
}
