@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
61 lines (60 loc) • 1.44 kB
TypeScript
import { SCContributionType, SCFeedObjectType } from '@selfcommunity/types';
import { SCFeedObjectTemplateType } from '../../../../types/feedObject';
export interface CommentProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Feed object id
* @default null
*/
feedObjectId?: number;
/**
* Feed object
* @default null
*/
feedObject?: SCFeedObjectType;
/**
* Feed object type
* @default 'post' type
*/
feedObjectType?: Exclude<SCContributionType, SCContributionType.COMMENT>;
/**
* Feed Object template type
* @default 'preview'
*/
feedObjectTemplate?: SCFeedObjectTemplateType;
/**
* Show audience
* @default true
*/
withAudience?: boolean;
/**
* Show action
* @default true
*/
withAction?: boolean;
/**
* Inline action layout.
* Action will be align with the audience button.
* @default true
*/
inlineAction?: boolean;
/**
* Handles action view all comments click
* @default null
*/
onViewCommentsAction?: () => any;
/**
* Handles action comment click
* @default null
*/
onCommentAction?: () => any;
/**
* Any other properties
*/
[p: string]: any;
}
export default function Comment(props: CommentProps): JSX.Element;