import { ArrowRightCircle } from '@/components/HeroIcons' import { siteConfig } from '@/lib/config' import { useGlobal } from '@/lib/global' import CONFIG from '../config' import Swipe from './Swipe' /** * 通知横幅 */ export function NoticeBar() { let notices = siteConfig('HEO_NOTICE_BAR', null, CONFIG) const { locale } = useGlobal() if (typeof notices === 'string') { notices = JSON.parse(notices) } if (!notices || notices?.length === 0) { return <> } return (
{locale.COMMON.NOW}
) }