import { Button } from '@/components/ui/button' import { Label } from '@/components/ui/label' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select' import { chartTimeData } from '@/lib/utils' import { Separator } from '@/components/ui/separator' import { LoaderCircleIcon, SaveIcon } from 'lucide-react' import { UserSettings } from '@/types' import { saveSettings } from './layout' import { useState } from 'react' // import { Input } from '@/components/ui/input' export default function SettingsProfilePage({ userSettings }: { userSettings: UserSettings }) { const [isLoading, setIsLoading] = useState(false) async function handleSubmit(e: React.FormEvent) { e.preventDefault() setIsLoading(true) const formData = new FormData(e.target as HTMLFormElement) const data = Object.fromEntries(formData) as Partial await saveSettings(data) setIsLoading(false) } return (

General

Change general application options.

{/*

Language

Internationalization will be added in a future release. Please see the{' '} discussion on GitHub {' '} for more details.

*/}

Chart options

Adjust display options for charts.

Sets the default time range for charts when a system is viewed.

) }