UNPKG

@skbkontur/cassandra-distributed-task-queue-ui

Version:

.NET library implementing distributed task queue machinery using Apache Cassandra

14 lines (13 loc) 711 B
import { PropsWithChildren } from "react"; import type { ReactElement } from "react"; import { TaskState } from "./Domain/Api/TaskState"; import { ICustomRenderer } from "./Domain/CustomRenderer"; export type TaskStateDict = Partial<Record<TaskState, string>>; export interface ICustomSettings { customDetailRenderer: ICustomRenderer; customStateCaptions: TaskStateDict; hideMissingMeta: boolean; customSearchHelp?: ReactElement; } export declare const CustomSettingsProvider: ({ customStateCaptions, customSearchHelp, customDetailRenderer, hideMissingMeta, children, }: PropsWithChildren<Partial<ICustomSettings>>) => JSX.Element; export declare const useCustomSettings: () => ICustomSettings;