UNPKG

@selfcommunity/react-ui

Version:

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

45 lines (44 loc) 1.18 kB
import { SCEventType } from '@selfcommunity/types'; import { CacheStrategies } from '@selfcommunity/utils'; import 'swiper/css'; import { BaseDialogProps } from '../../shared/BaseDialog'; import { EventProps } from '../Event'; import { WidgetProps } from '../Widget'; export interface RelatedEventsWidgetProps extends WidgetProps { /** * Event Object * @default null */ event?: SCEventType; /** * Id of event object * @default null */ eventId?: number; /** * Props to spread to single event object * @default {} */ eventComponentProps?: EventProps; /** * 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?: number; /** * Other props */ [p: string]: any; } export default function RelatedEventsWidget(inProps: RelatedEventsWidgetProps): JSX.Element;