stream-chat-react
Version:
React components to create chat conversations or livestream style chat
19 lines (18 loc) • 769 B
TypeScript
import React, { type ComponentType } from 'react';
import type { Coords } from 'stream-chat';
export type ShareGeolocationMapProps = Partial<Coords> & {
loadingLocation: boolean;
restartLocationWatching: () => void;
geolocationPositionError?: GeolocationPositionError;
};
export type ShareLocationDialogProps = {
close: () => void;
shareDurations?: number[];
GeolocationMap?: ComponentType<ShareGeolocationMapProps>;
DurationDropdownItems?: ComponentType<DurationDropdownItemsProps>;
};
export declare const ShareLocationDialog: ({ close, GeolocationMap, shareDurations, }: ShareLocationDialogProps) => React.JSX.Element;
export type DurationDropdownItemsProps = {
durations: number[];
selectDuration: (duration: number) => void;
};