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

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

  return (
    <ChatOverlayShell title="AI 创建" onClose={closeOverlay} compactHeader>
      <CreateSkillChat overlayMode={true} overlaySourceFileId={overlayProps?.sourceFileId || null} />
    </ChatOverlayShell>
  )
}
