2024-06-22 20:38:03 +01:00
|
|
|
import { Box } from '@mui/material';
|
|
|
|
|
import React, { ReactNode } from 'react';
|
|
|
|
|
import { Helmet } from 'react-helmet';
|
|
|
|
|
import ToolHeader from './ToolHeader';
|
2024-06-19 21:18:35 +01:00
|
|
|
|
2024-06-22 20:38:03 +01:00
|
|
|
export default function ToolLayout({
|
|
|
|
|
children,
|
|
|
|
|
title,
|
|
|
|
|
description
|
|
|
|
|
}: {
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
children: ReactNode;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
width={'100%'}
|
|
|
|
|
display={'flex'}
|
|
|
|
|
flexDirection={'column'}
|
|
|
|
|
alignItems={'center'}
|
|
|
|
|
>
|
|
|
|
|
<Helmet>
|
|
|
|
|
<title>{`${title} - Omni Tools`}</title>
|
|
|
|
|
</Helmet>
|
|
|
|
|
<Box width={'85%'}>
|
|
|
|
|
<ToolHeader title={title} description={description} />
|
|
|
|
|
{children}
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
2024-06-19 21:18:35 +01:00
|
|
|
}
|