A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
import { Link } from '@tanstack/react-router'
import { KeyRound, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
export default function ChatInactive({ onClose }: { onClose: any }) {
return (
<div className="flex flex-col h-full items-center justify-center relative py-16 px-4">
<Button
variant="ghost"
size="icon"
className="h-6 w-6 absolute top-3 right-3"
onClick={onClose}
>
<X className="h-4 w-4" />
</Button>
<div className="w-14 h-14 mb-5 text-muted-foreground/30">
<KeyRound className="w-full h-full" strokeWidth={1.5} />
</div>
<h3 className="text-sm font-medium text-foreground mb-1">API key required</h3>
<p className="text-sm text-muted-foreground text-center max-w-[260px] mb-5">
Add a <code className="text-xs bg-muted px-1.5! py-0.5! rounded">MISTRAL_API_KEY</code> in
your vault to start using the chat assistant
</p>
<Link to="/dashboard/vault">
<Button size="sm" className="h-8 text-xs gap-1.5">
Go to Vault
</Button>
</Link>
</div>
)
}