import { create } from "zustand";

export type ShapeType = "square" | "circle" | "triangle" | "abstract";

type ShapeStore = {
    activeShape: ShapeType;
    setActiveShape: (shape: ShapeType) => void;
    useAsMask: boolean;
    setUseAsMask: (value: boolean) => void;
};

export const useShapeStore = create<ShapeStore>((set) => ({
    activeShape: "square",
    setActiveShape: (shape) => set({ activeShape: shape }),
    useAsMask: false,
    setUseAsMask: (value) => set({ useAsMask: value }),
}));


