stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines • 652 B
TypeScript
export declare type DateSeparatorProps = {
/** The date to format */
date: Date;
/** Override the default formatting of the date. This is a function that has access to the original date object. */
formatDate?: (date: Date) => string;
/** Set the position of the date in the separator, options are 'left', 'center', 'right', @default right */
position?: 'left' | 'center' | 'right';
/** If following messages are not new */
unread?: boolean;
};
/**
* A simple date separator between messages.
*/
export declare const DateSeparator: (props: DateSeparatorProps) => JSX.Element;
//# sourceMappingURL=DateSeparator.d.ts.map