Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

815 B
Raw Blame
import { useNavigation, useT } from "@pibot/renderer-kit";
import { MemoryScopeView } from "../workspace/memory/settings/MemoryScopeView.tsx";
import { ABOUT_YOU_DIALOG } from "../workspace/memory/use-open-memory.ts";
import { AppDialog } from "./AppDialog.tsx";
import { MemorySortIntoPlace } from "./MemorySortIntoPlace.tsx";

export function AboutYouDialog() {
  const { dialog, closeDialog } = useNavigation();
  const t = useT();
  if (dialog?.owner !== ABOUT_YOU_DIALOG) return null;
  return (
    <AppDialog
      key={dialog.key}
      kind="about-you"
      mark={{ icon: "user", tone: "pink" }}
      title={t("appMenu.aboutYou")}
      close={() => closeDialog(dialog.key)}
    >
      <MemorySortIntoPlace />
      <MemoryScopeView owner={{ scope: "user", ownerId: "user" }} />
    </AppDialog>
  );
}