Files
Jeff Sieu 50d3386592 [question][ui] integrate backend voting (#355)
Co-authored-by: wlren <weilinwork99@gmail.com>
2022-10-10 22:23:58 +08:00

16 lines
480 B
TypeScript

import withHref from '~/utils/questions/withHref';
import type { AnswerCardProps } from './AnswerCard';
import AnswerCard from './AnswerCard';
export type QuestionAnswerCardProps = Required<
Omit<AnswerCardProps, 'votingButtonsSize'>
>;
function QuestionAnswerCardWithoutHref(props: QuestionAnswerCardProps) {
return <AnswerCard {...props} votingButtonsSize="sm" />;
}
const QuestionAnswerCard = withHref(QuestionAnswerCardWithoutHref);
export default QuestionAnswerCard;