file name and location updayed for better be

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-07 16:31:18 +05:00
parent b838025ab0
commit 809438735f
82 changed files with 87 additions and 470 deletions

View File

@@ -0,0 +1,22 @@
import { create } from 'zustand';
interface Product {
id: number;
name: string;
image: string;
inStock: boolean;
}
interface PriceModalStore {
isOpen: boolean;
product: Product | null;
openModal: (product: Product) => void;
closeModal: () => void;
}
export const usePriceModalStore = create<PriceModalStore>((set) => ({
isOpen: false,
product: null,
openModal: (product) => set({ isOpen: true, product }),
closeModal: () => set({ isOpen: false, product: null }),
}));