import { useChatOverlay } from '../contexts/ChatOverlayContext'
import ChatOverlayShell from './ChatOverlayShell'
import SkillEvalPage from '../pages/SkillEvalPage'

export default function EvalOverlay() {
  const { closeOverlay, overlayProps } = useChatOverlay()

  return (
    <ChatOverlayShell title="Skill 评测" onClose={closeOverlay}>
      <SkillEvalPage overlayMode={true} overlaySkillId={overlayProps?.skillId || overlayProps?.evalSkillId || null} />
    </ChatOverlayShell>
  )
}
