Files
aso/frontend/client-portal/src/components/Iconify.tsx
2022-11-03 09:51:22 +07:00

16 lines
425 B
TypeScript
Executable File

// icons
import { Icon, IconifyIcon } from '@iconify/react';
// @mui
import { Box, BoxProps, SxProps } from '@mui/material';
// ----------------------------------------------------------------------
interface Props extends BoxProps {
sx?: SxProps;
icon: IconifyIcon | string;
}
export default function Iconify({ icon, sx, ...other }: Props) {
return <Box component={Icon} icon={icon} sx={{ ...sx }} {...other} />;
}