import App from "@/pages/_app";
import fa from "&/locales/fa/app.json"

const translations = {fa};
const MockAppWithProviders = ({children, locale, title, isBot}) => {
    const pageProps = {
        title: title || '', isBot: isBot || true, locale: locale || 'fa', messages: translations[locale || 'fa']
    }
    
    return (<App Component={() => (<>{children}</>)} pageProps={pageProps}/>)
}

export default MockAppWithProviders