import { useContext } from "react";
import { DeclareVariableContext } from "./DeclareVariable.mjs";
const useVariable = (variableName)=>{
    const { name, value, title, collection } = useContext(DeclareVariableContext) || {};
    if (name === variableName) return {
        value,
        title,
        collection
    };
    return {};
};
export { useVariable };
