import { ReactNode } from 'react'; import { optionsType } from '../AllProjectsDropdown/types'; export interface ClientProjectOptionsRect { top: number; right: number; bottom: number; left: number; width: number; height: number; } export interface ClientProjectOptionsChangePayload { isOpen: boolean; rect?: ClientProjectOptionsRect; selected?: boolean; } export interface ClientMoreMenuPayload { rect?: ClientProjectOptionsRect; options: { label: string; value?: string; icon?: string; }[]; } export interface AppHeaderProps { isClientMoreMenuOpen?: boolean; onClientMoreMenuClick?: (_payload: ClientMoreMenuPayload) => void; onClientMoreMenuChange?: (_payload: ClientMoreMenuPayload) => void; scriptId?: string | undefined | null; width?: string; borderRadius?: string; logo: ReactNode; leftContent?: ReactNode; rightContent?: ReactNode; projectsList?: optionsType[]; licenseList?: optionsType[]; showLicenseMenu?: boolean; appHeaderMenuItems: appHeaderMenuItemProps[]; appHeaderHiddenMenuItems?: appHeaderMenuItemProps[]; selectedMenu: string; selectedSubMenu?: string; selectedQuickMenu?: string; selectedProject?: optionsType; selectedLicense?: optionsType | null; onMenuClick?: (_text: any) => void; onSubMenuClick?: (_text: any) => void; onQuickMenuClick?: (_text: any) => void; onProjectMenuClick?: (_text: any) => void; onProjectDropdownLabelClick?: () => void; onClientProjectOptionsChange?: (_payload: ClientProjectOptionsChangePayload) => void; onLicenseMenuClick?: (_text: any) => void; onMoreMenuOptionClick?: (_text: any, _callback: () => void) => void; disabled?: boolean; isClient?: boolean; hideNavbar?: boolean; centerInfoItems?: { iconName: string; label: string; iconColor?: string; }[]; rightButtons?: { label: string; iconName?: string; color?: string; backgroundColor?: string; onClick?: () => void; }[]; profileContent?: ReactNode; } export interface appHeaderMenuItemProps { iconName?: string; label: string; path?: string; disable?: boolean; disableText?: string; hide?: boolean; access?: string; isReviewer?: boolean; entityPendingCounts?: { [key: string]: number; }; subMenuItems?: appHeaderSubMenuItemProps[]; } export interface appHeaderSubMenuItemProps { label: string; path?: string; disable?: boolean; disableText?: string; hide?: boolean; quickMenuItems?: appHeaderQuickMenuItemProps[]; hiddenMenuItems?: appHeaderHiddenMenuItemProps[]; } export interface appHeaderQuickMenuItemProps { label: string; path: string; iconName: string; disable?: boolean; disableText?: string; hide?: boolean; } export interface appHeaderHiddenMenuItemProps { label: string; value?: string | string[]; icon?: string; disable?: boolean; disableText?: string; hide?: boolean; path?: string; iconName?: string; }