Migrate Message to Storybook
This commit is contained in:
parent
0051253125
commit
b9c5e7bf1d
4 changed files with 599 additions and 6067 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue