ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
import { useServerkitAI } from '../../contexts/useServerkitAI.js';
import { useTranslation } from 'react-i18next';
import { Button as SharedButton } from '@/components/ui/button';
const MODES = [
{ id: 'assistant', labelKey: 'app.modeToggle.assistant', label: 'Assistant' },
{ id: 'simple', labelKey: 'app.modeToggle.simple', label: 'Simple' },
];
// Assistant = tools + current-page context; Simple = plain chat, no tools.
const ModeToggle = () => {
const { t } = useTranslation();
const { mode, setMode } = useServerkitAI();
return (
<div className="sk-ai-modes" role="tablist" aria-label={t('app.modeToggle.chatMode', 'Chat mode')}>
{MODES.map((m) => (
<SharedButton variant="unstyled"
key={m.id}
type="button"
role="tab"
aria-selected={mode === m.id}
className={`sk-ai-modes__item${mode === m.id ? ' is-active' : ''}`}
onClick={() => setMode(m.id)}
>
{m.label}
</SharedButton>
))}
</div>
);
};
export default ModeToggle;