15 lines
392 B
TypeScript
15 lines
392 B
TypeScript
import type { FullCusEntWithFullCusProduct } from "../../../models/cusProductModels/cusEntModels/cusEntWithProduct";
|
|
import { entToOptions } from "../../productUtils/convertUtils";
|
|
|
|
export const cusEntToOptions = ({
|
|
cusEnt,
|
|
}: {
|
|
cusEnt: FullCusEntWithFullCusProduct;
|
|
}) => {
|
|
const ent = cusEnt.entitlement;
|
|
return entToOptions({
|
|
ent,
|
|
options: cusEnt.customer_product.options,
|
|
});
|
|
};
|