import { IconButton } from '@components/shared/Button' import { XMarkIcon } from '@heroicons/react/20/solid' import Link from 'next/link' import useIpAddress from 'hooks/useIpAddress' const BANNER_WRAPPER_CLASSES = 'flex flex-wrap items-center justify-center bg-th-bkg-1 px-10 py-3 text-xs' const LINK_TEXT_CLASSES = 'bg-gradient-to-b from-mango-classic-theme-active to-mango-classic-theme-down bg-clip-text font-bold text-transparent' const TEXT_CLASSES = 'mx-1 text-center text-th-fgd-1 text-xs' const WarningBanner = () => { const { showWarning } = useIpAddress() return showWarning ? ( ) : null } export default WarningBanner const BannerContent = ({ text, linkText, onClickLink, onClose, }: { text: string linkText: string onClickLink?: () => void onClose?: () => void }) => { return (

{text}

{linkText}
{onClose ? ( ) : null}
) }