UNPKG

@selfcommunity/react-ui

Version:

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

72 lines (71 loc) 1.95 kB
import { SCCommentType, SCContributionType, SCFeedObjectType } from '@selfcommunity/types'; export interface ContributionActionsMenuProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * FeedObject id * @default null */ feedObjectId?: number; /** * Feed obj * @default null */ feedObject?: SCFeedObjectType; /** * Feed obj type * @default 'post' */ feedObjectType?: Exclude<SCContributionType, SCContributionType.COMMENT>; /** * CommentObject id * @default null */ commentObjectId?: number; /** * Comment obj * @default null */ commentObject?: SCCommentType; /** * Handle edit obj */ onEditContribution?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Handle hide obj */ onHideContribution?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Handle delete obj */ onDeleteContribution?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Handle restore obj */ onRestoreContribution?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Handle flag notification obj */ onFlagContribution?: (obj: SCCommentType | SCFeedObjectType, type: string, flagged: boolean) => void; /** * Handle suspend notification obj */ onSuspendNotificationContribution?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Handle suspend notification event embedded in obj */ onSuspendNotificationEvent?: (obj: SCCommentType | SCFeedObjectType) => void; /** * Props to spread to popper * @default empty object */ PopperProps?: any; /** * Any other properties */ [p: string]: any; } export default function ContributionActionsMenu(props: ContributionActionsMenuProps): JSX.Element;