import { useUser } from "../utilities/auth/useUser.mjs";
import { c } from "react-compiler-runtime";
//#region src/hooks/useProductVersion.js
const useProductVersion = (productId) => {
	const $ = c(3);
	const user = useUser();
	let t0;
	if ($[0] !== productId || $[1] !== user?.products) {
		t0 = user?.products?.find((product) => product?.productId === productId);
		$[0] = productId;
		$[1] = user?.products;
		$[2] = t0;
	} else t0 = $[2];
	return t0?.currentProductVersionId || "";
};
//#endregion
export { useProductVersion };

//# sourceMappingURL=useProductVersion.mjs.map