import classNames from "classnames"; import { useHistory } from "react-router-dom"; import Sticky from "react-stickynode"; import { Button } from "@/components/Button"; import { Icon, Icons } from "@/components/Icon"; import { WideContainer } from "@/components/layout/WideContainer"; import { Divider } from "@/components/utils/Divider"; import { Heading1, Heading2, Heading3 } from "@/components/utils/Text"; import { conf } from "@/setup/config"; import { SubPageLayout } from "./layouts/SubPageLayout"; // TODO Put all of this not here (when I'm done writing them) function SidebarSection(props: { title: string; children: React.ReactNode }) { return (

{props.title}

{props.children}
); } function SidebarLink(props: { children: React.ReactNode; icon: Icons; active?: boolean; }) { const history = useHistory(); const goToPage = (link: string) => { history.push(link); }; return ( goToPage("/settings")} className={classNames( "w-full px-3 py-2 flex items-center space-x-3 cursor-pointer rounded my-2", props.active ? "bg-settings-sidebar-activeLink text-settings-sidebar-type-activated" : null )} > {props.children} ); } function SettingsSidebar() { // eslint-disable-next-line no-restricted-globals const hostname = location.hostname; const rem = 16; return (
{/* I looked over at my bookshelf to come up with these links */} A war in my name! TANSTAAFL We all float down here My skin is not my own
Version {conf().APP_VERSION}
Domain {hostname}
); } function SettingsLayout(props: { children: React.ReactNode }) { return (
{props.children}
); } function SecondaryLabel(props: { children: React.ReactNode }) { return

{props.children}

; } function Card(props: { children: React.ReactNode; className?: string; paddingClass?: string; }) { return (
{props.children}
); } function AltCard(props: { children: React.ReactNode; className?: string; paddingClass?: string; }) { return (
{props.children}
); } function AccountSection() { return (
Account Beep beep
); } function DevicesSection() { const devices = [ "Jip's iPhone", "Muad'Dib's Nintendo Switch", "Oppenheimer's old-ass phone", ]; return (
Devices
{devices.map((deviceName) => (
Device name

{deviceName}

))}
); } function ActionsSection() { return (
Actions
Delete account

This action is irreversible. All data will be deleted and nothing can be recovered.

); } export function SettingsPage() { return ( ); }