@wandelbots/wandelbots-js-react-components
Version:
React UI toolkit for building applications on top of the Wandelbots platform
36 lines • 1.11 kB
TypeScript
import { type SxProps } from "@mui/material";
import { type ReactNode } from "react";
export type AppItem = {
/** Unique identifier for the app */
id: string;
/** Display name of the app */
name: string;
/** Icon component to display */
icon: ReactNode;
/** URL or callback to navigate to the app */
href?: string;
/** Click handler for the app */
onClick?: () => void;
};
export type AppHeaderProps = {
/** Current app icon */
appIcon: ReactNode;
/** Current app name */
appName: string;
/** List of other available apps */
apps?: AppItem[];
/** Callback when an app is selected */
onAppSelect?: (app: AppItem) => void;
/** Disable the menu button */
disabled?: boolean;
/** Additional styling */
sx?: SxProps;
};
/**
* A top navigation header component that displays the current app and provides
* a dropdown menu to navigate to other apps.
*/
export declare const AppHeader: ((props: AppHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=AppHeader.d.ts.map