mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
35 lines
955 B
TypeScript
35 lines
955 B
TypeScript
/* eslint-disable consistent-default-export-name/default-export-match-filename */
|
|
import React from 'react';
|
|
|
|
import type { Props } from './types';
|
|
|
|
import AppErrorBoundary from 'ui/shared/AppError/AppErrorBoundary';
|
|
import HeaderAlert from 'ui/snippets/header/HeaderAlert';
|
|
import HeaderMobile from 'ui/snippets/header/HeaderMobile';
|
|
|
|
import * as Layout from './components';
|
|
|
|
const LayoutDefault = ({ children }: Props) => {
|
|
return (
|
|
<Layout.Root content={ children }>
|
|
<Layout.Container>
|
|
<Layout.TopRow/>
|
|
<HeaderMobile/>
|
|
<Layout.MainArea>
|
|
<Layout.MainColumn>
|
|
<HeaderAlert/>
|
|
<AppErrorBoundary>
|
|
<Layout.Content>
|
|
{ children }
|
|
</Layout.Content>
|
|
</AppErrorBoundary>
|
|
</Layout.MainColumn>
|
|
</Layout.MainArea>
|
|
<Layout.Footer/>
|
|
</Layout.Container>
|
|
</Layout.Root>
|
|
);
|
|
};
|
|
|
|
export default LayoutDefault;
|