import { type PropsWithChildren } from 'react' import { Toaster } from 'react-hot-toast' import { DialogSuccess } from '~/components/dialog/success' import { useNewsContext } from '~/contexts/news' import { Banner } from '~/layouts/news/banner' import { DialogForgotPassword } from '~/layouts/news/dialog-forgot-password' import { DialogLogin } from '~/layouts/news/dialog-login' import { DialogRegister } from './dialog-register' import { DialogSubscribePlan } from './dialog-subscribe-plan' import { FooterLinks } from './footer-links' import { FooterNewsletter } from './footer-newsletter' import { HeaderMenu } from './header-menu' import { HeaderTop } from './header-top' export const NewsDefaultLayout = (properties: PropsWithChildren) => { const { children } = properties const { isSuccessOpen, setIsSuccessOpen } = useNewsContext() return (
{children}
{ setIsSuccessOpen(undefined) }} />
) }