import type { BoxProps } from '@mui/material/Box'; import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import { varAlpha } from 'minimal-shared/utils'; import { CONFIG } from 'src/global-config'; // ---------------------------------------------------------------------- type Props = BoxProps & { title?: string; description?: string; img?: React.ReactNode; action?: React.ReactNode; }; export function AppWelcome({ title, description, action, img, sx, ...other }: Props) { return ( ({ ...theme.mixins.bgGradient({ images: [ `linear-gradient(to right, ${varAlpha(theme.vars.palette.grey['900Channel'], 0.88)} 0%, ${theme.vars.palette.grey[900]} 75%)`, `url(${CONFIG.assetsDir}/assets/background/background-5.webp)`, ], }), pt: 5, pb: 5, pr: 3, gap: 5, borderRadius: 2, display: 'flex', height: { md: 1 }, position: 'relative', pl: { xs: 3, md: 5 }, alignItems: 'center', color: 'common.white', textAlign: { xs: 'center', md: 'left' }, flexDirection: { xs: 'column', md: 'row' }, border: `solid 1px ${theme.vars.palette.grey[800]}`, }), ...(Array.isArray(sx) ? sx : [sx]), ]} {...other} > {title} {description} {action && action} {img && {img}} ); }