import { IGenericText } from "../../../generic/types";
import { IMSTeamsMessage } from "../../types";

export const transformText = ( { props }: IGenericText ) => {
    const { type = "plain"} = props;
    const isPlain = type === "plain";

    const contentType = isPlain
        ? "text" 
        : props.type as any;

    return {
        type: "text",
        value: {
            contentType,
            content: props?.value || ""
        }
    };
} ;

