@onereach/channel-transformer
Version:
Convert data model between different channels (Slack, Microsoft Teams, Generic...)
11 lines (9 loc) • 333 B
text/typescript
import { IGenericLink } from "../../../generic/types";
import { ISalesforceMiawStaticContentLinkItem } from "../../types";
export const transformLinkItem = (linkItem: ISalesforceMiawStaticContentLinkItem): IGenericLink => ({
type: "link",
props: {
url: linkItem.url,
title: linkItem.titleItem.title,
}
});