import { useUser } from '../utilities/auth/useUser';
export const useProductVersion = (productId) => {
    var _a;
    const user = useUser();
    const matchingProduct = (_a = user === null || user === void 0 ? void 0 : user.products) === null || _a === void 0 ? void 0 : _a.find((product) => (product === null || product === void 0 ? void 0 : product.productId) === productId);
    return (matchingProduct === null || matchingProduct === void 0 ? void 0 : matchingProduct.currentProductVersionId) || '';
};
//# sourceMappingURL=useProductVersion.js.map