UNPKG

@selfcommunity/react-ui

Version:

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

45 lines (44 loc) 1 kB
import { SCContributionType, SCFeedObjectType } from '@selfcommunity/types'; export interface ShareProps { /** * 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>; /** * 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; /** * Any other properties */ [p: string]: any; } export default function Share(props: ShareProps): JSX.Element;