@connectycube/chat-widget
Version:
A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.
46 lines • 1.85 kB
TypeScript
import * as React from 'react';
import { type AvatarProps } from './avatar';
import { type LucideProps } from 'lucide-react';
import { type FormattedDateProps } from './formatted-date';
import { type StatusSentProps } from './status-sent';
import { type PresenceStatus } from './presence';
import { type BadgeProps } from './badge';
interface DialogItemProps extends React.ComponentProps<'div'> {
index?: number;
isPrivateDialog?: boolean;
selected?: boolean;
onSelect?: () => void;
name: string;
photo?: string;
userOnline?: boolean;
userPresence?: PresenceStatus;
hasGroupIcon?: boolean;
lastSentStatus?: StatusSentProps['status'];
lastSentDate?: FormattedDateProps['date'];
lastSenderName?: string;
lastMessage?: string;
typingStatusText?: string;
draft?: string;
draftLabel?: string;
unreadCount?: number;
language?: string;
divider?: 'top' | 'bottom' | 'both' | 'none';
avatarProps?: AvatarProps;
contentProps?: React.ComponentProps<'div'>;
headerProps?: React.ComponentProps<'div'>;
headerLeftProps?: React.ComponentProps<'div'>;
groupIconProps?: LucideProps;
nameProps?: React.ComponentProps<'span'>;
headerRightProps?: React.ComponentProps<'div'>;
statusSentIconProps?: StatusSentProps;
formattedDateProps?: FormattedDateProps;
footerProps?: React.ComponentProps<'div'>;
lastMessageProps?: React.ComponentProps<'span'>;
draftLabelProps?: React.ComponentProps<'span'>;
lastSenderNameProps?: React.ComponentProps<'span'>;
unreadBadgeProps?: BadgeProps;
dividerProps?: React.ComponentProps<'div'>;
}
declare const DialogItem: React.NamedExoticComponent<Omit<DialogItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export { DialogItem, type DialogItemProps };
//# sourceMappingURL=dialog-item.d.ts.map