From 2c9013fd25e688dd1d6088634922c32bde375713 Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Thu, 11 Jul 2024 11:02:40 +0300 Subject: [PATCH] update interface --- src/interfaces/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index f77275a..47f0f0f 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -1,8 +1,11 @@ -import { ReactNode } from 'react'; +import { SvgIconTypeMap } from '@mui/material'; +import { OverridableComponent } from '@mui/material/OverridableComponent'; export interface MenuItem { title: string; path: string; - icon?: ReactNode | JSX.Element; + icon: OverridableComponent, 'svg'>> & { + muiName: string; + }; children?: MenuItem[]; }