mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 13:13:54 +08:00
16 lines
480 B
TypeScript
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;
|