import type { FC } from 'react'
import EmailFormOverlay from '.'

interface InstructorEmailFormOverlayProps {
  teamId: string
  exerciseId: string
  onSuccess: (threadId?: string) => void
}

const InstructorEmailFormOverlay: FC<InstructorEmailFormOverlayProps> = ({
  teamId,
  exerciseId,
  onSuccess,
}) => (
  <EmailFormOverlay
    onSuccess={onSuccess}
    teamId={teamId}
    emailForm='instructor'
    exerciseId={exerciseId}
  />
)

export default InstructorEmailFormOverlay
