@skbkontur/cassandra-distributed-task-queue-ui
Version:
.NET library implementing distributed task queue machinery using Apache Cassandra
14 lines (13 loc) • 720 B
TypeScript
import { PropsWithChildren } from "react";
import type { JSX } from "react";
import { TaskState } from "./Domain/Api/TaskState";
import { ICustomRenderer } from "./Domain/CustomRenderer";
export declare type TaskStateDict = Partial<Record<TaskState, string>>;
export interface ICustomSettings {
customDetailRenderer: ICustomRenderer;
customStateCaptions: TaskStateDict;
hideMissingMeta: boolean;
customSearchHelp?: JSX.Element;
}
export declare const CustomSettingsProvider: ({ customStateCaptions, customSearchHelp, customDetailRenderer, hideMissingMeta, children, }: PropsWithChildren<Partial<ICustomSettings>>) => globalThis.JSX.Element;
export declare const useCustomSettings: () => ICustomSettings;