Migrate Message to Storybook

This commit is contained in:
Chris Svenningsen 2020-08-27 09:57:12 -07:00 committed by Josh Perez
parent 0051253125
commit b9c5e7bf1d
4 changed files with 599 additions and 6067 deletions

View file

@ -61,6 +61,15 @@ interface LinkPreviewType {
image?: AttachmentType;
}
export const Statuses = [
'delivered',
'error',
'partial-sent',
'read',
'sending',
'sent',
] as const;
export type PropsData = {
id: string;
conversationId: string;
@ -72,7 +81,7 @@ export type PropsData = {
interactionMode: 'mouse' | 'keyboard';
direction: 'incoming' | 'outgoing';
timestamp: number;
status?: 'sending' | 'sent' | 'delivered' | 'read' | 'error' | 'partial-sent';
status?: typeof Statuses[number];
contact?: ContactType;
authorTitle: string;
authorName?: string;