UNPKG

@xapp/chat-widget

Version:
16 lines (15 loc) 610 B
import 'rollup-plugin-inject-process-env'; import { FC } from "react"; import { ChatServerButton, ChatServerListItem } from "../../xapp/ChatServerMessage"; import "./ListItem.scss"; import { OpenUrlCallback } from "../../hooks/useOpenUrlCallback"; export interface ListItemProps { readonly item: ChatServerListItem; readonly emptyImageVisible?: boolean; readonly layout?: "normal" | "titles"; onButtonClick(button: ChatServerButton): void; onExecute(text: string, token?: string): void; onOpenUrl: OpenUrlCallback; } declare const ListItem: FC<ListItemProps>; export default ListItem;