Exam generation rework, batch user tables, fastapi endpoint switch
This commit is contained in:
15
src/components/ExamEditor/Shared/ExerciseLabel.tsx
Normal file
15
src/components/ExamEditor/Shared/ExerciseLabel.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
interface Props {
|
||||
label: string;
|
||||
preview?: React.ReactNode;
|
||||
}
|
||||
|
||||
const ExerciseLabel: React.FC<Props> = ({label, preview}) => {
|
||||
return (
|
||||
<div className="flex w-full justify-between items-center mr-4">
|
||||
<span className="font-semibold">{label}</span>
|
||||
{preview && <div className="text-sm font-light italic">{preview}</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default ExerciseLabel;
|
||||
Reference in New Issue
Block a user