UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

42 lines (41 loc) 1.05 kB
import { SCEventType } from '@selfcommunity/types'; import { CacheStrategies } from '@selfcommunity/utils'; import { BaseDialogProps } from '../../shared/BaseDialog'; import { WidgetProps } from '../Widget'; export interface EventMediaWidgetProps extends WidgetProps { /** * Event Object * @default null */ event?: SCEventType; /** * Id of event object * @default null */ eventId?: number; /** * Feed 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 results * @default 10 */ limit?: number; /** * Other props */ [p: string]: any; } export default function EventMediaWidget(inProps: EventMediaWidgetProps): JSX.Element;