@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
69 lines (68 loc) • 1.75 kB
TypeScript
import { VoteProps } from './Vote';
import { CommentProps } from './Comment';
import { ShareProps } from './Share';
import { SCContributionType, SCFeedObjectType } from '@selfcommunity/types';
import { SCFeedObjectTemplateType } from '../../../types/feedObject';
export interface ActionsProps {
/**
* 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;
/**
* Hides vote action
* @default false
*/
hideVoteAction?: boolean;
/**
* Hides share action
* @default false
*/
hideShareAction?: boolean;
/**
* Hides comment action
* @default false
*/
hideCommentAction?: boolean;
/**
* Handles section expansion
* @default null
*/
handleExpandActivities?: () => void;
/**
* Props to spread to Comment action component
* @default {inlineAction: false}
*/
VoteActionProps?: VoteProps;
/**
* Props to spread to Vote action component
* @default {inlineAction: false}
*/
CommentActionProps?: CommentProps;
/**
* Props to spread to Share action component
* @default {inlineAction: false}
*/
ShareActionProps?: ShareProps;
}
export default function Actions(props: ActionsProps): JSX.Element;