"use client";
import { MotionContext } from "./index316.js";
import { getCurrentTreeVariants } from "./index317.js";
import { useContext, useMemo } from "react";
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
function useCreateMotionContext(props) {
	const { initial, animate } = getCurrentTreeVariants(props, useContext(MotionContext));
	return useMemo(() => ({
		initial,
		animate
	}), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);
}
function variantLabelsAsDependency(prop) {
	return Array.isArray(prop) ? prop.join(" ") : prop;
}
//#endregion
export { useCreateMotionContext };

//# sourceMappingURL=index318.js.map