mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
import { create } from 'zustand';
|
|
|
|
import { type IOperation } from '../models/oss';
|
|
|
|
interface OperationTooltipStore {
|
|
activeOperation: IOperation | null;
|
|
setActiveOperation: (value: IOperation | null) => void;
|
|
}
|
|
|
|
export const useOperationTooltipStore = create<OperationTooltipStore>()(set => ({
|
|
activeOperation: null,
|
|
setActiveOperation: value => set({ activeOperation: value })
|
|
}));
|