import React , { FC } from 'react' ; import { Icon , PlusIcon , Pane , Tooltip } from 'evergreen-ui' ; const NewFolderButton = ( { onClick , tooltip , size } ) => { return ( < Tooltip content = { tooltip } > < Pane onClick = { onClick } > < Icon icon = { PlusIcon } size = { size } cursor = "pointer" / > < /Pane> < /Tooltip>); } ; NewFolderButton . defaultProps = { tooltip : 'New Folder' , size : 42 , } ; export default NewFolderButton ;