import { BookUser, EllipsisVertical, FileUp, Forward, Info, InfoIcon, ListTodo, Save } from 'lucide-react' import React from 'react' type AssignmentBoxProps = { type: 'quiz' | 'file' view?: 'teacher' | 'student' saveFC?: () => void submitFC?: () => void showSavingDisclaimer?: boolean children: React.ReactNode } function AssignmentBoxUI({ type, view, saveFC, submitFC, showSavingDisclaimer, children }: AssignmentBoxProps) { return (
{type === 'quiz' &&

Quiz

} {type === 'file' &&

File Submission

}
{view === 'teacher' &&

Teacher view

}
{showSavingDisclaimer &&

Don't forget to save your progress

} {/* Save button */} {view === 'teacher' &&
saveFC && saveFC()} className='flex px-2 py-1 cursor-pointer rounded-md space-x-2 items-center bg-gradient-to-bl text-emerald-700 bg-emerald-300/20 hover:bg-emerald-300/10 hover:outline-offset-4 active:outline-offset-1 linear transition-all outline-offset-2 outline-dashed outline-emerald-500/60'>

Save

} {view === 'student' &&
submitFC && submitFC()} className='flex px-2 py-1 cursor-pointer rounded-md space-x-2 items-center bg-gradient-to-bl text-emerald-700 bg-emerald-300/20 hover:bg-emerald-300/10 hover:outline-offset-4 active:outline-offset-1 linear transition-all outline-offset-2 outline-dashed outline-emerald-500/60'>

Save your progress

}
{children}
) } export default AssignmentBoxUI