@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
37 lines (36 loc) • 818 B
TypeScript
import { SCFeedObjectType, SCPollChoiceType } from '@selfcommunity/types';
export interface ChoiceObjectProps {
/**
* Choice object
*/
choiceObj: SCPollChoiceType;
}
export interface ChoiceProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* The id of the selected choice
*/
isVoting?: number;
/**
* Feed object
*/
feedObject?: SCFeedObjectType;
/**
* Choice object
*/
choiceObj?: SCPollChoiceType;
/**
* If `true`, the choice is not votable because poll is closed
* @default null
*/
votable?: boolean;
/**
* Any other properties
*/
[p: string]: any;
}
export default function Choice(props: ChoiceProps): JSX.Element;