UNPKG

@onereach/channel-transformer

Version:

Convert data model between different channels (Slack, Microsoft Teams, Generic...)

14 lines (11 loc) 370 B
import { IGenericText } from "../../../generic/types"; import { ISalesforceMiawMessage } from "../../types"; export const transformText = ( { props }: IGenericText ): ISalesforceMiawMessage => { return { messageType: 'StaticContentMessage', staticContent: { formatType: 'Text', text: props?.value || "" } }; } ;