import { useContext } from "react";
import { IntroContext } from "@/contexts/IntroContext";

export const useIntro = () => {
    const context = useContext(IntroContext);
    if (!context) {
        throw new Error("useIntro must be used within an IntroProvider");
    }
    return context;
};
