Error 404
: children}import React, { useEffect } from 'react'; import { __ } from '@wordpress/i18n'; import { useLocation } from 'react-router-dom'; // store import { useStore, storeSet } from '../../store'; // components import AppSidebar from './components/AppSidebar'; import AppTopbar from './components/AppTopbar'; const DefaultLayout = ({ children }) => { const isError404 = useStore().main.isError404(); const location = useLocation(); useEffect(() => { storeSet.main.isError404(false); }, [location]); return (
Error 404
: children}