@nlabs/gothamjs
Version:
Platform
41 lines (40 loc) • 1.3 kB
TypeScript
import type { FC, ReactNode } from 'react';
import type { GothamConfiguration, GothamStatus } from './GothamProvider.js';
export interface GothamProps {
readonly children?: ReactNode;
readonly classes?: Record<string, string>;
readonly config?: GothamConfiguration;
readonly isAuth?: () => boolean;
}
export interface GothamState {
readonly currentNotification: GothamNotification;
readonly hasNotification: boolean;
readonly isAppLoaded: boolean;
readonly isLoading: boolean;
}
export interface GothamButtonItem {
readonly label?: string;
readonly url?: string;
}
export type GothamMenuType = 'header' | 'link';
export interface GothamMenuItem {
readonly content?: (color: string) => ReactNode;
readonly label?: string;
readonly menu?: GothamMenuItem[];
readonly path?: string;
readonly type: GothamMenuType;
readonly url: string;
}
export interface GothamNotification {
readonly key: string;
readonly message: string;
readonly status: GothamStatus;
}
export interface ContainerProviderProps {
children?: ReactNode;
navProps: Record<string, unknown>;
routeProps: Record<string, unknown>;
}
export declare const onKeyUp: (event: any) => void;
export declare const Gotham: FC<GothamProps>;
export default Gotham;