@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
48 lines (47 loc) • 1.23 kB
TypeScript
import { SCUserType } from '@selfcommunity/types';
import { CacheStrategies } from '@selfcommunity/utils';
import 'swiper/css';
import { BaseDialogProps } from '../../shared/BaseDialog';
import { WidgetProps } from '../Widget';
import { LiveStreamProps } from '../LiveStream';
export interface UserLiveStreamWidgetProps extends WidgetProps {
/**
* The user id
* @default null
*/
userId: number;
/**
* User Object
* @default null
*/
user?: SCUserType;
/**
* Props to spread to single live stream object
* @default {}
*/
liveStreamComponentProps?: LiveStreamProps;
/**
* API Query Params
* @default [{'limit': 20, 'offset': 0}]
*/
endpointQueryParams?: Record<string, string | number>;
/**
* Caching strategies
* @default CacheStrategies.CACHE_FIRST
*/
cacheStrategy?: CacheStrategies;
/**
* Props to spread to users suggestion dialog
* @default {}
*/
dialogProps?: BaseDialogProps;
/**
* Limit param
*/
limit?: number;
/**
* Other props
*/
[p: string]: any;
}
export default function UserLiveStreamWidget(inProps: UserLiveStreamWidgetProps): JSX.Element;