import { Modal, Button, ModalBody, ModalHeader, ModalFooter, ModalOverlay, ModalContent, useDisclosure, ModalCloseButton, } from '@chakra-ui/react'; import { If, Markdown } from '~/components'; import { useConfig, useColorValue } from '~/context'; import type { TGreeting } from './types'; export const Greeting = (props: TGreeting) => { const { onClickThrough, ...rest } = props; const { web, content } = useConfig(); const { isOpen, onClose } = useDisclosure(); const bg = useColorValue('white', 'black'); const color = useColorValue('black', 'white'); function handleClick(): void { onClickThrough(); onClose(); return; } return ( {web.greeting.title} ); };