Files
explore/ui/shared/layout/LayoutError.tsx
T
tom goriunovandGitHub b9b3733ef3 Page meta tags are not generated on the server (#2731)
* Page meta tags are not generated on the server

Fixes #2730

* suppress warnings about critical dependencies in Next.js logs
2025-05-15 18:24:55 +02:00

38 lines
993 B
TypeScript

import React from 'react';
import type { Props } from './types';
import AppErrorBoundary from 'ui/shared/AppError/AppErrorBoundary';
import HeaderAlert from 'ui/snippets/header/HeaderAlert';
import HeaderDesktop from 'ui/snippets/header/HeaderDesktop';
import HeaderMobile from 'ui/snippets/header/HeaderMobile';
import * as Layout from './components';
const LayoutError = ({ children }: Props) => {
return (
<Layout.Root content={ children }>
<Layout.Container>
<Layout.TopRow/>
<Layout.NavBar/>
<HeaderMobile/>
<Layout.MainArea>
<Layout.SideBar/>
<Layout.MainColumn>
<HeaderAlert/>
<HeaderDesktop/>
<AppErrorBoundary>
<main>
{ children }
</main>
</AppErrorBoundary>
</Layout.MainColumn>
</Layout.MainArea>
<Layout.Footer/>
</Layout.Container>
</Layout.Root>
);
};
export default LayoutError;