mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-20 19:26:43 +00:00
34 lines
692 B
TypeScript
34 lines
692 B
TypeScript
import { Box } from '@mui/material';
|
|
import React, { ReactNode } from 'react';
|
|
import { Helmet } from 'react-helmet';
|
|
import ToolHeader from './ToolHeader';
|
|
|
|
export default function ToolLayout({
|
|
children,
|
|
title,
|
|
description,
|
|
image
|
|
}: {
|
|
title: string;
|
|
description: string;
|
|
image?: 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} image={image} />
|
|
{children}
|
|
</Box>
|
|
</Box>
|
|
);
|
|
}
|