import { IGenericSection } from '../../../generic/types';
import { IOutputText } from '../../types';
import { transformText } from './text';

export const transformOutputText = (msg: IOutputText): IGenericSection => {
  const result: IGenericSection = {
    type: 'section',
    children: [transformText(msg.value)]
  };

  return result;
};