twilio-ccai-fulfillment-tools
Version:
A collection of tools to assist in the creation of Twilio CCAI Integration cards via fulfillment scripts
22 lines (19 loc) • 393 B
text/typescript
import { TNotification, TEMPLATES } from '../types';
interface INotificationInput {
title?: string;
position?: number;
type: 'success' | 'error';
text: string;
}
export const createNotification = ({
title,
type,
text,
position,
}: INotificationInput): TNotification => ({
template: TEMPLATES.NOTIFICATION,
title,
type,
text,
position,
});