Enhance modal functionality with ModalContainer component; update ShareModal to use ModalWrapper; improve responsive text sizes in index.css; integrate FloatingActionButton in HomePage for popup sharing.

This commit is contained in:
2025-10-09 12:32:53 +05:00
parent 0b8edce9d6
commit 8aef8a530b
14 changed files with 357 additions and 26 deletions
+18
View File
@@ -0,0 +1,18 @@
import { create } from "zustand";
import type { ReactNode } from "react";
interface ModalState {
modal: ReactNode | null;
setModal: (modal: ReactNode | null) => void;
position: "center" | "right";
setPosition: (position: "center" | "right") => void;
}
const useModalStore = create<ModalState>()((set) => ({
modal: null,
position: "center",
setPosition: (position) => set({ position }),
setModal: (modal) => set({ modal }),
}));
export default useModalStore;