@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
21 lines (20 loc) • 931 B
TypeScript
import { SCCommentType, SCFeedObjectType, SCNotificationContributionType } from '@selfcommunity/types';
import { NotificationItemProps } from '../../../shared/NotificationItem';
export interface ContributionNotificationProps extends Pick<NotificationItemProps, Exclude<keyof NotificationItemProps, 'image' | 'disableTypography' | 'primary' | 'primaryTypographyProps' | 'secondary' | 'secondaryTypographyProps' | 'actions' | 'footer' | 'isNew'>> {
/**
* Notification obj
* @default null
*/
notificationObject: SCNotificationContributionType;
/**
* Handles action on vote
* @default null
*/
onVote?: (contribution: SCFeedObjectType | SCCommentType) => any;
}
/**
* This component render the content of the notification of type follow (contribution)
* @constructor
* @param props
*/
export default function ContributionNotification(props: ContributionNotificationProps): JSX.Element;