UNPKG

@cobuildlab/8base-chat

Version:

Chat component that uses 8base

10 lines (9 loc) 530 B
/// <reference types="react" /> import { ChannelsSearchQuery } from 'shared/graphql/__generated__'; import { ISelectBrowserProps } from '../select-browser'; declare type ChannelsItems = NonNullable<ChannelsSearchQuery>['channelsList']['items']; interface IChannelsBrowserProps extends Omit<ISelectBrowserProps, 'optionBody' | 'availableOptions' | 'options'> { channels: ChannelsItems; } declare function ChannelsBrowser({ channels, input, ...selectProps }: IChannelsBrowserProps): JSX.Element; export default ChannelsBrowser;