diff --git a/src/index.tsx b/src/index.tsx index d31f8dd..86cd2e9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -113,6 +113,11 @@ export interface AgentDockProps { hidden?: boolean; /** localStorage namespace for the open/closed state. */ storageKey?: string; + /** Optional fine-print rendered under the composer — e.g. a privacy / + * data-handling notice. App-supplied content (the dock stays generic); + * omit for no notice. Kept visually quiet so it doesn't compete with the + * input. */ + notice?: React.ReactNode; } /* ------------------------------------------------------------------ */ @@ -153,6 +158,7 @@ export function AgentDock({ onExpand, hidden = false, storageKey = DEFAULT_STORAGE_KEY, + notice, }: AgentDockProps) { const [open, setOpen] = useState(() => { if (typeof window === "undefined") return false; @@ -418,7 +424,7 @@ export function AgentDock({
  • + {notice ? ( +
    + {notice} +
    + ) : null}