mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
27 lines
617 B
TypeScript
27 lines
617 B
TypeScript
import type { QuestionCardProps } from './QuestionCard';
|
|
import QuestionCard from './QuestionCard';
|
|
|
|
export type QuestionOverviewCardProps = Omit<
|
|
QuestionCardProps & {
|
|
showActionButton: false;
|
|
showUserStatistics: false;
|
|
showVoteButtons: true;
|
|
},
|
|
| 'actionButtonLabel'
|
|
| 'onActionButtonClick'
|
|
| 'showActionButton'
|
|
| 'showUserStatistics'
|
|
| 'showVoteButtons'
|
|
>;
|
|
|
|
export default function FullQuestionCard(props: QuestionOverviewCardProps) {
|
|
return (
|
|
<QuestionCard
|
|
{...props}
|
|
showActionButton={false}
|
|
showUserStatistics={false}
|
|
showVoteButtons={true}
|
|
/>
|
|
);
|
|
}
|