import { Box } from '@mui/material'; import React, { ReactNode } from 'react'; import { Helmet } from 'react-helmet'; import ToolHeader from './ToolHeader'; import Separator from '@tools/Separator'; import AllTools from './allTools/AllTools'; import { getToolsByCategory } from '@tools/index'; import { capitalizeFirstLetter } from '../utils/string'; export default function ToolLayout({ children, title, description, image, type }: { title: string; description: string; image?: string; type: string; children: ReactNode; }) { const otherCategoryTools = getToolsByCategory() .find((category) => category.type === type) ?.tools.filter((tool) => tool.name !== title) .map((tool) => ({ title: tool.name, description: tool.shortDescription, link: '/' + tool.path })) ?? []; return ( {`${title} - Omni Tools`} {children} ); }