import React from 'react';
import {
Settings,
Cpu,
Inbox,
Bell,
Save,
ShieldCheck
} from 'lucide-react';
import useAdminStore from '../store/adminStore';
import { Card, CardContent } from "../../components/ui/card";
import { Select } from "../../components/ui/select";
/**
* AdminSettings Page
* Comprehensive configuration for system parameters, AI thresholds, and notifications.
*/
const AdminSettings = () => {
const { settings, updateSettings } = useAdminStore();
// Handlers
const handleChange = (key, value) => {
updateSettings({ [key]: value });
};
return (
{/* 1. Header Area */}
Settings
Administrator Account
{/* 2. System Settings (AI Parameters) */}
AI Settings
{/* AI Confidence Threshold */}
Minimum confidence required for AI to process and categorize tickets automatically.
handleChange('aiConfidenceThreshold', parseFloat(e.target.value))}
className="w-full h-2 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-indigo-600"
/>
{/* Duplicate Detection Sensitivity */}
Semantic similarity score needed to flag incoming tickets as duplicates.
handleChange('duplicateSensitivity', parseFloat(e.target.value))}
className="w-full h-2 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-indigo-600"
/>
{/* Auto Resolve Toggle */}
Enable Auto Resolve
Allow AI to close easily solved requests.
{/* 3. Ticket Settings */}
Ticket Settings
Auto-Close Tickets
Automatically archive resolved tickets after inactivity.
{/* 4. Notification Settings */}
Notifications
{/* Email Notifications toggle */}
Email Notifications
Receive daily system digests via email.
{/* Admin Alert Notifications toggle */}
Critical Admin Alerts
Push notifications for Priority 1 system events.
);
};
export default AdminSettings;