init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
import type { BoxProps } from '@mui/material/Box';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
// ----------------------------------------------------------------------
type FormHeadProps = BoxProps & {
icon?: React.ReactNode;
title: React.ReactNode;
description?: React.ReactNode;
};
export function FormHead({ sx, icon, title, description, ...other }: FormHeadProps) {
return (
<>
{icon && (
<Box component="span" sx={{ mb: 3, mx: 'auto', display: 'inline-flex' }}>
{icon}
</Box>
)}
<Box
sx={[
() => ({
mb: 5,
gap: 1.5,
display: 'flex',
textAlign: 'center',
whiteSpace: 'pre-line',
flexDirection: 'column',
}),
...(Array.isArray(sx) ? sx : [sx]),
]}
{...other}
>
<Typography variant="h5">{title}</Typography>
{description && (
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
{description}
</Typography>
)}
</Box>
</>
);
}