import React from "react"; import styles from "./DynamicMenu.css"; import { MenuDrawer } from "./MenuDrawer/MenuDrawer"; import { MenuItem } from "./MenuItem/MenuItem"; interface MenuSchema { items: MenuItemInterface[]; isMobile: boolean; } export interface MenuItemInterface { MenuItemProps: MenuItemProps; } export interface SubMenuItemProps { iconSrc?: string; title?: any; href?: any; internal: boolean; highlight: boolean; content?: any; SubMenuItemProps?: SubMenuItemProps; } export interface MenuItemProps { iconSrc?: string; title?: string; href?: string; internal?: boolean; content?: string; items?: SubMenuItemProps[]; banner?: string; bannerUrl?: string; MenuItemProps?: MenuItemProps; } export const DynamicMenu: StorefrontFunctionComponent = ( props: MenuSchema ) => { if (!props.items) return <>; if (props.isMobile) { return ( <> ); } return ( ); }; DynamicMenu.schema = { title: "Menu DinĂ¢mico", };