import { create } from 'zustand' import type { PluginDetail } from '../types' export type SimpleDetail = Pick & { provider: string } type Shape = { detail: SimpleDetail | undefined setDetail: (detail?: SimpleDetail) => void } export const usePluginStore = create(set => ({ detail: undefined, setDetail: (detail?: SimpleDetail) => set({ detail }), }))