2024-06-22 22:06:16 +01:00
|
|
|
import { Box, Stack } from '@mui/material';
|
|
|
|
|
import Typography from '@mui/material/Typography';
|
2024-06-19 21:18:35 +01:00
|
|
|
|
|
|
|
|
interface ToolHeaderProps {
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
2024-06-23 01:26:04 +01:00
|
|
|
image?: string;
|
2024-06-19 21:18:35 +01:00
|
|
|
}
|
|
|
|
|
|
2024-06-23 01:26:04 +01:00
|
|
|
export default function ToolHeader({
|
|
|
|
|
image,
|
|
|
|
|
title,
|
|
|
|
|
description
|
|
|
|
|
}: ToolHeaderProps) {
|
2024-06-22 22:06:16 +01:00
|
|
|
return (
|
|
|
|
|
<Stack direction={'row'} alignItems={'center'} spacing={2} mt={4}>
|
|
|
|
|
<Box>
|
|
|
|
|
<Typography mb={2} fontSize={30} color={'primary'}>
|
|
|
|
|
{title}
|
|
|
|
|
</Typography>
|
|
|
|
|
<Typography fontSize={20}>{description}</Typography>
|
|
|
|
|
</Box>
|
2024-06-23 01:26:04 +01:00
|
|
|
{image && <img width={'250'} src={image} />}
|
2024-06-22 22:06:16 +01:00
|
|
|
</Stack>
|
|
|
|
|
);
|
2024-06-19 21:18:35 +01:00
|
|
|
}
|