import { useState } from 'react';
const tabs = [
{ id: 'general', label: 'General' },
{ id: 'notifications', label: 'Notifications' },
{ id: 'security', label: 'Security' },
{ id: 'logs', label: 'Logs' },
];
function GeneralSettings() {
return (
);
}
function NotificationSettings() {
return (
);
}
function SecuritySettings() {
return (
);
}
function LogSettings() {
return (
);
}
export function Settings() {
const [activeTab, setActiveTab] = useState('general');
const tabContent = {
general: ,
notifications: ,
security: ,
logs: ,
};
return (
Settings
{tabContent[activeTab as keyof typeof tabContent]}
);
}