@elastic-suite/gally-admin-shared
Version:
Shared package for gally admin BO
19 lines (15 loc) • 350 B
text/typescript
import { FunctionComponent } from 'react'
export interface ITabContentProps {
active?: boolean
}
export interface ITab<P = ITabContentProps> {
Component: FunctionComponent<P>
componentProps?: Omit<P, 'active'>
id: number
label: string
}
export interface IRouterTab extends ITab {
actions?: JSX.Element
default?: true
url: string
}