mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import { IconButton, useDisclosure } from '@chakra-ui/react';
|
|
import { LucideHeart } from 'lucide-react';
|
|
import React from 'react';
|
|
|
|
import SupportThisSiteModal from './SupportThisSiteModal';
|
|
import { toolbarButtonZIndex } from './Toolbar';
|
|
|
|
export default function SupportThisSiteButton() {
|
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
|
return (
|
|
<>
|
|
<IconButton
|
|
as="a"
|
|
aria-label="Support"
|
|
icon={<LucideHeart />}
|
|
cursor="pointer"
|
|
onClick={onOpen}
|
|
size="md"
|
|
stroke="text.accent"
|
|
bg="transparent"
|
|
_hover={{
|
|
bg: 'transparent',
|
|
svg: {
|
|
stroke: 'accent.danger',
|
|
transition: 'stroke 0.3s ease-in-out',
|
|
},
|
|
}}
|
|
title="Support"
|
|
variant="ghost"
|
|
zIndex={toolbarButtonZIndex}
|
|
sx={{
|
|
svg: {
|
|
stroke: 'text.accent',
|
|
strokeWidth: '2px',
|
|
transition: 'stroke 0.2s ease-in-out',
|
|
},
|
|
}}
|
|
/>
|
|
<SupportThisSiteModal isOpen={isOpen} onClose={onClose} />
|
|
</>
|
|
);
|
|
}
|