packages/explorer-ui/components/layouts/MainLayout/CloseButton.tsx
import { CloseIcon } from '@components/icons/CloseIcon'
export const CloseButton = ({ onClick }) => {
return (
<button
onClick={onClick}
className={`
group ml-1 flex items-center justify-center
h-10 w-10 rounded-full
focus:outline-none bg-white
shadow-md hover:shadow-lg
transition
hover:bg-indigo-50
text-indigo-600 hover:text-indigo-700
dark:bg-gray-800
dark:text-gray-500
dark:hover:text-purple-700
dark:hover:bg-gray-700 dark:active:bg-gray-700
`}
>
<span className="sr-only">Close sidebar</span>
<CloseIcon className="w-6 h-6 " />
</button>
)
}