"use client" import { Textarea } from "@ui/components/textarea" import { useOnboarding } from "./onboarding-context" import { useState } from "react" import { Button } from "@ui/components/button" import { AnimatePresence, motion } from "motion/react" import { NavMenu } from "./nav-menu" import { $fetch } from "@lib/api" export function BioForm() { const [bio, setBio] = useState("") const { totalSteps, nextStep, getStepNumberFor } = useOnboarding() function handleNext() { const trimmed = bio.trim() if (!trimmed) { nextStep() return } nextStep() void $fetch("@post/documents", { body: { content: trimmed, containerTags: ["sm_project_default"], metadata: { sm_source: "consumer" }, }, }).catch((error) => { console.error("Failed to save onboarding bio memory:", error) }) } return (
Step {getStepNumberFor("bio")} of {totalSteps}
share with Supermemory what you do, who you are, and what you're interested in