@insightphp/insight
Version:
Laravel package for building control panels.
32 lines (31 loc) • 1.12 kB
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 declare namespace Models {
interface Navigation {
items: Array<NavigationItem>;
}
interface NavigationItem {
link: Component<ElementComponents.Link>;
childNavigation: Navigation | null;
}
interface User {
name: string | null;
profilePhotoUrl: string | null;
shouldShowName: boolean;
}
}
export declare namespace Pages {
interface ListResourcesPage {
resources: Component<TableComponents.Table> | null;
filter: Component<Components.Filter> | null;
isSearchable: boolean;
bulkActions: Array<Component<ElementComponents.Link>>;
breadcrumbItems?: Array<Component>;
}
interface ShowResourcePage {
details: Component<PanelComponents.Panel> | null;
}
}