Files
lettersoup-online/002_source/cms/src/components/dashboard/logistics/late-vehicles.tsx
louiscklaw 6c931c1fe8 build ok,
2025-04-14 09:26:24 +08:00

35 lines
1.1 KiB
TypeScript

import * as React from 'react';
import Avatar from '@mui/material/Avatar';
import Card from '@mui/material/Card';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { Clock as ClockIcon } from '@phosphor-icons/react/dist/ssr/Clock';
export interface LateVehiclesProps {
amount: number;
}
export function LateVehicles({ amount }: LateVehiclesProps): React.JSX.Element {
return (
<Card>
<Stack spacing={1} sx={{ p: 3 }}>
<Stack direction="row" spacing={2} sx={{ alignItems: 'center' }}>
<Avatar
sx={{
bgcolor: 'var(--mui-palette-background-paper)',
boxShadow: 'var(--mui-shadows-8)',
color: 'var(--mui-palette-text-primary)',
}}
>
<ClockIcon fontSize="var(--icon-fontSize-lg)" />
</Avatar>
<Typography variant="h5">{amount}</Typography>
</Stack>
<Typography color="text.secondary" variant="body2">
Late vehicles
</Typography>
</Stack>
</Card>
);
}