priceContact added

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-01 19:19:46 +05:00
parent 96acd12d9c
commit 63b363b142
8 changed files with 393 additions and 5 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 }),
}));