UNPKG

@selfcommunity/react-ui

Version:

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

31 lines (30 loc) 971 B
import { SCEventType, SCUserType } from '@selfcommunity/types'; import { Dispatch, SetStateAction } from 'react'; import { BaseDialogProps } from '../../shared/BaseDialog'; import { UserProps } from '../User'; import { TabContentType } from './types'; interface TabComponentProps { tabValue: TabContentType; state: any; dispatch: Dispatch<any>; /** * Props to spread to single user object * @default empty object */ userProps?: UserProps; /** * Props to spread to users suggestion dialog * @default {} */ dialogProps?: BaseDialogProps; actionProps?: { scEvent?: SCEventType; count?: number; setCount?: Dispatch<SetStateAction<number>>; users?: SCUserType[]; setUsers?: Dispatch<SetStateAction<SCUserType[]>>; }; handleRefresh?: (tabValue: TabContentType) => void; } export default function TabContentComponent(props: TabComponentProps): JSX.Element; export {};