import { TemplateGalleryProvider } from '../context/template-gallery-context' import { useTranslation } from 'react-i18next' import useWaitForI18n from '../../../shared/hooks/use-wait-for-i18n' import withErrorBoundary from '../../../infrastructure/error-boundary' import { GenericErrorBoundaryFallback } from '@/shared/components/generic-error-boundary-fallback' import getMeta from '@/utils/meta' import DefaultNavbar from '@/features/ui/components/bootstrap-5/navbar/default-navbar' import Footer from '@/features/ui/components/bootstrap-5/footer/footer' import GalleryHeaderTagged from './gallery-header-tagged' import GalleryHeaderAll from './gallery-header-all' import TemplateGallery from './template-gallery' import GallerySearchSortHeader from './gallery-search-sort-header' import GalleryPopularTags from './gallery-popular-tags' function TemplateGalleryRoot() { const { isReady } = useWaitForI18n() if (!isReady) { return null } return ( ) } function TemplateGalleryPageContent() { const { t } = useTranslation() const navbarProps = getMeta('ol-navbar') const footerProps = getMeta('ol-footer') const category = getMeta('ol-templateCategory') return ( <>
{category ? ( <> ) : ( <>

{t('all_templates')}

)}