Skip to content

Commit

Permalink
update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Jul 11, 2024
1 parent ddb8128 commit 2c9013f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -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<SvgIconTypeMap<NonNullable<unknown>, 'svg'>> & {
muiName: string;
};
children?: MenuItem[];
}

0 comments on commit 2c9013f

Please sign in to comment.