@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
25 lines (22 loc) • 1 kB
TypeScript
import React__default from 'react';
import { Contact } from '../../types/models.js';
import { AvatarProps } from '../Avatar/Avatar.js';
interface UIContactPreviewComponentProps extends UIContactPreviewProps {
/** If the component's Contact is the active (selected) Contact */
active?: boolean;
/** Image of Contact to display */
displayImage?: string;
/** Title of Contact to display */
displayTitle?: string | React__default.ReactElement;
}
interface UIContactPreviewProps {
contact: Contact;
activeContact?: Contact;
Preview?: React__default.ComponentType<UIContactPreviewComponentProps>;
Avatar?: React__default.ComponentType<AvatarProps>;
setActiveContact?: (contact?: Contact) => void;
searchValue?: string;
}
declare function UIContactPreview<T extends UIContactPreviewProps>(props: T): React__default.ReactElement;
export { UIContactPreview, UIContactPreviewComponentProps, UIContactPreviewProps };
//# sourceMappingURL=UIContactPreview.d.ts.map