mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-03 01:18:43 +02:00
Adds a Biome rule for "no unused imports", which is something we sometimes have trouble catching. We're adding this as a warning for now. It is safely and easily fixable with `yarn lint:fix`.  
22 lines
410 B
TypeScript
22 lines
410 B
TypeScript
import { Box } from '@mui/material';
|
|
import { ReactNode } from 'react';
|
|
|
|
interface IIconCellProps {
|
|
icon: ReactNode;
|
|
}
|
|
|
|
export const IconCell = ({ icon }: IIconCellProps) => {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
pl: 2,
|
|
pr: 1,
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
}}
|
|
>
|
|
{icon}
|
|
</Box>
|
|
);
|
|
};
|