@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
27 lines (24 loc) • 1.05 kB
TypeScript
import React__default from 'react';
import { Group } from '../../types/models.js';
import { AvatarProps } from '../Avatar/Avatar.js';
interface UIGroupPreviewComponentProps extends UIGroupPreviewProps {
/** If the component's Conversation is the active (selected) Conversation */
active?: boolean;
/** Image of Conversation to display */
displayImage?: string;
/** Title of Conversation to display */
displayTitle?: string | React__default.ReactElement;
/** Time of Conversation to display */
displayTime?: string;
}
interface UIGroupPreviewProps {
group: Group;
activeGroup?: Group;
Preview?: React__default.ComponentType<UIGroupPreviewComponentProps>;
Avatar?: React__default.ComponentType<AvatarProps>;
setActiveGroup?: (group: Group) => void;
searchValue?: string;
}
declare function UIGroupPreview<T extends UIGroupPreviewProps>(props: T): React__default.ReactElement;
export { UIGroupPreview, UIGroupPreviewComponentProps, UIGroupPreviewProps };
//# sourceMappingURL=UIGroupPreview.d.ts.map