Files
react-test/docs/data/material/components/icons/TwoToneIcons.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
431 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import { useTheme } from '@mui/material/styles';
import Icon from '@mui/material/Icon';
const useIsDarkMode = () => {
const theme = useTheme();
return theme.palette.mode === 'dark';
};
export default function TwoToneIcons() {
const isDarkMode = useIsDarkMode();
return (
<Icon
sx={[isDarkMode && { filter: 'invert(1)' }]}
baseClassName="material-icons-two-tone"
>
add_circle
</Icon>
);
}