softchatjs-react
Version:
Install the softchat-js SDKs
25 lines (22 loc) • 729 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { UserMeta } from 'softchatjs-core';
import { ConnectionStatus } from '../../providers/clientStateProvider.mjs';
import 'react';
type View = "broadcast-lists" | "conversation-list";
type NavButton = {
label: string;
icon: JSX.Element;
key: string;
visible: boolean;
onClick: () => void;
};
declare function Navbar(props: {
chatUser: UserMeta;
activeView: View;
userList: UserMeta[];
onViewChanged: (view: View) => void;
renderNavbar: (props: NavButton[]) => JSX.Element;
connectionStatus: ConnectionStatus;
enableBroadcasts?: boolean;
}): react_jsx_runtime.JSX.Element;
export { type NavButton, Navbar as default };