UNPKG

@grandlinex/react-components

Version:
25 lines (24 loc) 1.02 kB
import React from 'react'; import { TabBarProps } from './TabBar'; import { SideBarProps } from './Sidebar'; import { HeaderProps } from './Header'; import { SideBarPanelProps } from './SidebarPanel'; import { ModalProps } from './BlockingModal'; import { SpotlightProps } from './SpotlightModal'; import { KeyBind } from '../../../util/hooks'; export type TabLayoutProps = { init: boolean; tabs: TabBarProps; disableSideBar?: boolean; preload: () => Promise<void>; tabRenderer: React.ReactNode; globalRenderer?: React.ReactNode; sideBar?: SideBarProps; header: HeaderProps; blockingModal?: ModalProps; spotlightProps?: SpotlightProps; spotlightOpen?: boolean; hotKeys?: KeyBind[]; } & SideBarPanelProps; declare const TabLayout: ({ header, init, preload, disableSideBar, tabRenderer, sideBar, tabs, globalRenderer, blockingModal, selectPanel, setPanel, panelRenderer, spotlightProps, spotlightOpen, hotKeys, }: TabLayoutProps) => React.JSX.Element; export { TabLayout };