@onereach/channel-transformer
Version:
Convert data model between different channels (Slack, Microsoft Teams, Generic...)
14 lines (11 loc) • 343 B
text/typescript
import { IGenericLocation } from "../../../../generic/types";
import { IRWCAnswerComponent } from "../../../types";
export const transformGeoLocation = (msg: IRWCAnswerComponent): IGenericLocation => {
const result: IGenericLocation = {
type: 'location',
props: {
label: msg.vBind?.buttonLabel
}
};
return result;
};