decentraland-ui
Version:
Decentraland's UI components and styles
59 lines (58 loc) • 1.82 kB
TypeScript
/// <reference types="react" />
import { UserMenuI18N, UserMenuProps } from '../UserMenu/UserMenu.types';
import { ChainSelectorProps, ChainSelectori18n } from '../ChainSelector/ChainSelector.props';
export declare enum NavbarPages {
MARKETPLACE = "marketplace",
CREATE = "create",
EXPLORE = "explore",
LEARN = "learn",
GOVERNANCE = "governance",
EXTRA = "extra"
}
export declare type NavbarMenuI18nProps = Record<NavbarPages, string>;
export declare type NavbarSubMenuItemsProps = {
column1Title?: string;
column1: {
title: string;
description: string;
url: string;
eventTrackingName: string;
isExternal?: boolean;
}[];
column2Title?: string;
column2: {
title: string;
description: string;
url: string;
eventTrackingName: string;
isExternal?: boolean;
}[];
column3Title?: string;
column3?: {
title: string;
description: string;
url: string;
eventTrackingName: string;
isExternal?: boolean;
}[];
};
export declare type NavbarSubmenuProps = {
marketplace: NavbarSubMenuItemsProps;
create: NavbarSubMenuItemsProps;
explore: NavbarSubMenuItemsProps;
learn: NavbarSubMenuItemsProps;
governance: NavbarSubMenuItemsProps;
};
export declare type NavbarProps = Omit<UserMenuProps, 'i18n'> & Partial<ChainSelectorProps> & {
i18nNavbar?: NavbarMenuI18nProps;
submenuItems?: NavbarSubmenuProps;
i18nUserMenu?: UserMenuI18N;
i18nChainSelector?: ChainSelectori18n;
activePage: NavbarPages | string;
className?: string;
onClickNavbarItem?: (event: React.MouseEvent<HTMLElement, MouseEvent>, options: {
eventTrackingName: string;
url?: string;
isExternal?: boolean;
}) => void;
};