import { createFileRoute } from "@tanstack/react-router" import { motion } from "motion/react" import Appearance from "@/components/UserSettings/Appearance" import RemoteAccess from "@/components/UserSettings/RemoteAccess" import UserInformation from "@/components/UserSettings/UserInformation" import useAuth from "@/hooks/useAuth" import { listStagger, slideUp } from "@/lib/motion" export const Route = createFileRoute("/_layout/settings")({ component: UserSettings, head: () => ({ meta: [ { title: "Settings - Fluksio", }, ], }), }) function UserSettings() { const { user: currentUser } = useAuth() if (!currentUser) { return null } return (

Settings

Manage your account settings and preferences

{/* Panels rather than tabs, the way the portal does it: there are few enough of these to read at once, and hiding four behind a tab bar was navigation over three cards. Changing a password and deleting an account belong to the account, so they live in that card's footer. */} {/* Whether this whole instance can be reached from outside is not a personal preference, so it only exists for an operator. */} {currentUser.is_superuser && ( )}
) }