@medalsocial/meda
Version:
Shared Meda UI shell and runtime package.
31 lines (30 loc) • 1.59 kB
TypeScript
import { type ReactNode } from 'react';
import type { AppShellAppTabsConfig, AppShellContextRailConfig, AppShellIconRailConfig, AppShellMobileNavConfig, AppShellRightPanelConfig, AppShellWorkspaceConfig, ShellMainLayout } from './types.js';
export interface AppShellWorkspaceProps {
iconRail?: AppShellIconRailConfig;
contextRail?: AppShellContextRailConfig;
rightPanel?: AppShellRightPanelConfig;
workspace?: AppShellWorkspaceConfig;
appTabs?: AppShellAppTabsConfig;
globalActions?: ReactNode;
headerCenter?: ReactNode;
headerLeading?: ReactNode;
banners?: ReactNode;
mainLayout?: ShellMainLayout;
mainClassName?: string;
/**
* Whether to render the built-in `CommandPalette` (providing the
* `CommandRegistryContext`) when no registry is already in context. Defaults
* to `true` for backwards compatibility; set `false` to opt out when the host
* app ships its own palette.
*/
builtInCommandPalette?: boolean;
/**
* Opt-in mobile dock + workspace sheet. When provided, the mobile viewport
* renders a floating dock + one workspace sheet instead of the legacy
* bottom-nav + four drawers. Omit to keep the legacy mobile nav.
*/
mobileNav?: AppShellMobileNavConfig;
children: ReactNode;
}
export declare function AppShellWorkspace({ iconRail, contextRail, rightPanel, workspace, appTabs, globalActions, headerCenter, headerLeading, banners, mainLayout, mainClassName, builtInCommandPalette, mobileNav, children, }: AppShellWorkspaceProps): import("react/jsx-runtime").JSX.Element;