HR-ATS-Portal/frontend/src/screens/AiAssistant.jsx

32 lines
955 B
JavaScript

import { useState } from 'react'
import Chat from '../app/ai/Chat'
import PageHeader from '../ui/PageHeader'
import { Icon } from '../ui/primitives'
export default function AiAssistant() {
// Bumping the key resets the transcript — the old AI.newChat().
const [resetKey, setResetKey] = useState(0)
return (
<div className="page">
<PageHeader
title="AI Assistant"
sub="Your recruiting copilot — powered by AI (interface preview)"
actions={<>
<span className="integration-status pending">
<span className="pulse" />Model endpoint · Not connected
</span>
<button className="btn btn-secondary" onClick={() => setResetKey((k) => k + 1)}>
<Icon name="plus" /> New Chat
</button>
</>}
/>
<div className="card">
<div className="card-body">
<Chat resetKey={resetKey} />
</div>
</div>
</div>
)
}