@insightphp/insight
Version:
Laravel package for building control panels.
40 lines (31 loc) • 1.05 kB
text/typescript
import type { Component } from '@insightphp/inertia-view'
import type { Components as ElementComponents } from '@insightphp/elements'
import type { Components as TableComponents } from '@insightphp/tables'
import type { Components as PanelComponents } from '@insightphp/panels'
import type { Components } from './View/Components'
export namespace Models {
export interface Navigation {
items: Array<NavigationItem>
}
export interface NavigationItem {
link: Component<ElementComponents.Link>
childNavigation: Navigation|null
}
export interface User {
name: string|null
profilePhotoUrl: string|null
shouldShowName: boolean
}
}
export namespace Pages {
export interface ListResourcesPage {
resources: Component<TableComponents.Table>|null
filter: Component<Components.Filter>|null
isSearchable: boolean
bulkActions: Array<Component<ElementComponents.Link>>
breadcrumbItems?: Array<Component>
}
export interface ShowResourcePage {
details: Component<PanelComponents.Panel>|null
}
}