Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

1.1 KB
Raw Blame
"use client";

import { ChevronRight, ShieldCheck } from "lucide-react";
import { useSession } from "@/features/auth";
import { SettingsActionRow, SettingsSection } from "@/features/shell-settings";
import type { SectionId } from "../lib/sections";
import { AccountPasswordCard } from "./account-password-card";
import { AccountProfileCard } from "./account-profile-card";
import { useAboutPage } from "./about-page-state";

export function AccountSection({ onOpen }: { onOpen: (id: SectionId) => void }) {
  const { status, role } = useSession();
  const { setPage } = useAboutPage();
  return (
    <div className="space-y-4 sm:space-y-5">
      <AccountProfileCard status={status} role={role} />
      <AccountPasswordCard status={status} role={role} />
      <SettingsSection icon={<ShieldCheck />} title="Also in Account" footnote="About lives here. Devices and Server are their own section.">
        <SettingsActionRow label="About" onClick={() => { setPage("overview"); onOpen("about"); }} trailing={<ChevronRight className="size-4" aria-hidden />} />
      </SettingsSection>
    </div>
  );
}