mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-08 08:01:11 +00:00
28 lines
609 B
TypeScript
28 lines
609 B
TypeScript
import { Types } from "@monitor/client";
|
|
import { ReactNode } from "react";
|
|
|
|
export type UsableResource = Exclude<Types.ResourceTarget["type"], "System">;
|
|
|
|
type IdComponent = React.FC<{ id: string }>;
|
|
type OptionalIdComponent = React.FC<{ id?: string }>;
|
|
|
|
export interface RequiredResourceComponents {
|
|
Icon: OptionalIdComponent;
|
|
|
|
New: React.FC;
|
|
|
|
/// Used on the dashboard
|
|
Dashboard: React.FC;
|
|
|
|
Name: IdComponent;
|
|
Description: IdComponent;
|
|
Info: IdComponent[];
|
|
Status: IdComponent;
|
|
Link: IdComponent;
|
|
Actions: IdComponent;
|
|
|
|
Table: React.FC;
|
|
|
|
Page: { [section: string]: IdComponent };
|
|
}
|