import type { StateCreator } from "zustand";
import type { AppState } from "../types";

export type ClipboardSlice = Pick<AppState, "clipboard" | "setClipboard">;

export const createClipboardSlice: StateCreator<AppState, [], [], ClipboardSlice> = (set) =>
({
    clipboard: null,
    setClipboard: (c) => set({ clipboard: c }),
});
