|
@@ -1,5 +1,5 @@
|
|
|
import React from 'react';
|
|
|
-import { SvgIcon } from '@mui/material';
|
|
|
+import { SvgIcon, SvgIconProps } from '@mui/material';
|
|
|
import AppsIcon from '@mui/icons-material/Apps';
|
|
|
import CancelIcon from '@mui/icons-material/Cancel';
|
|
|
import ConsoleIcon from '@/assets/icons/console.svg?react';
|
|
@@ -8,7 +8,9 @@ import SearchEmptyIcon from '@/assets/icons/search.svg?react';
|
|
|
import Compact from '@/assets/icons/compact.svg?react';
|
|
|
import type { IconsType } from './Types';
|
|
|
|
|
|
-const icons: { [x in IconsType]: (props?: any) => React.ReactElement } = {
|
|
|
+const icons: {
|
|
|
+ [x in IconsType]: (props?: SvgIconProps) => React.ReactElement;
|
|
|
+} = {
|
|
|
search: (props = {}) => (
|
|
|
<SvgIcon
|
|
|
width="15"
|