25 lines
772 B
TypeScript
25 lines
772 B
TypeScript
import React from 'react';
|
|
import { MessageItemAction } from './types';
|
|
|
|
interface CompareContextProps {
|
|
spans: {
|
|
span: number;
|
|
count: number;
|
|
};
|
|
actions?: MessageItemAction[];
|
|
systemMessage?: string;
|
|
globalParams: Record<string, any>;
|
|
loadingStatus: Record<symbol, boolean>;
|
|
modelFullList: (Global.BaseOption<string> & { type?: string })[];
|
|
handleApplySystemChangeToAll: (val: string) => void;
|
|
handleDeleteModel: (instanceId: symbol) => void;
|
|
setSystemMessage?: (message: string) => void;
|
|
setGlobalParams: (value: Record<string, any>) => void;
|
|
setLoadingStatus: (instanceId: symbol, status: boolean) => void;
|
|
}
|
|
const CompareContext = React.createContext<CompareContextProps>(
|
|
{} as CompareContextProps
|
|
);
|
|
|
|
export default CompareContext;
|