import { createResource, For, type ParentComponent } from "solid-js"; import Scaffold from "../material/Scaffold.js"; import { AppBar, Divider, IconButton, List, ListItem, ListItemButton, ListItemSecondaryAction, ListItemText, ListSubheader, NativeSelect, Select, Switch, Toolbar, } from "@suid/material"; import { Close as CloseIcon } from "@suid/icons-material"; import { useNavigate } from "@solidjs/router"; import { Title } from "../material/typography.jsx"; import { useSessions } from "../masto/clients.js"; import { css } from "solid-styled"; import { useSignedInProfiles } from "../masto/acct.js"; import { signOut, type Account } from "../accounts/stores.js"; import { intlFormat } from "date-fns"; import { useStore } from "@nanostores/solid"; import { $settings } from "./stores.js"; const Settings: ParentComponent = () => { const navigate = useNavigate(); const settings$ = useStore($settings); const [profiles] = useSignedInProfiles(); const doSignOut = (acct: Account) => { signOut((a) => a.site === acct.site && a.accessToken === acct.accessToken); }; css` ul { padding: 0; } .setting-list { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); } `; return ( Settings } >
    • Accounts All Notifications Sign in...
    {({ account: acct, inf }) => (
      {`@${inf?.username ?? "..."}@${new URL(acct.site).host}`} Notifications Sign out
    )}
  • Reading Fonts Prefetch Toots $settings.setKey("prefetchTootsDisabled", !e.target.checked) } />
  • Controls Optimized UI
  • This Application About Tutu No updates
  • ); }; export default Settings;