"use client" import { useState, type ReactNode } from "react" import { Check, Copy } from "lucide-react" import { toast } from "sonner" import { cn } from "@lib/utils" import { dmSans125ClassName } from "@/lib/fonts" import type { InstallStep } from "@/lib/plugin-catalog" /** Recessed "inside-out" inset shadow used across Supermemory surfaces. */ export const INSET = "shadow-[inset_0_2px_4px_rgba(0,0,0,0.3),inset_0_1px_2px_rgba(0,0,0,0.1)]" export function PillButton({ children, onClick, disabled, type = "button", }: { children: ReactNode onClick?: () => void disabled?: boolean type?: "button" | "submit" }) { return ( ) } export function CopyButton({ text, label }: { text: string; label?: string }) { const [copied, setCopied] = useState(false) return ( ) } export function CodeBlock({ code, copyLabel = "Command", secret, }: { code: string copyLabel?: string secret?: boolean }) { return (
{code}
{step.title}
{step.optional && ( Optional )}{step.description}
)}