import { Trans } from "@lingui/react/macro" 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 { LanguagesIcon, LoaderCircleIcon, SaveIcon } from "lucide-react" import { UserSettings } from "@/types" import { saveSettings } from "./layout" import { useState } from "react" import languages from "@/lib/languages" import { dynamicActivate } from "@/lib/i18n" import { useLingui } from "@lingui/react/macro" // import { setLang } from "@/lib/i18n" export default function SettingsProfilePage({ userSettings }: { userSettings: UserSettings }) { const [isLoading, setIsLoading] = useState(false) const { i18n } = useLingui() 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

Want to help us make our translations even better? Check out{" "} Crowdin {" "} for more details.

Chart options

Adjust display options for charts.

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

) }