1
2
3
4
5
6
7
8
export async function parseMenuOffering(text: string) {
/** get rid of the wrapping {} */
const stripped = text.slice(1, -1);
const items = stripped.split("|");
return {
items,
};
}