import { AgentState } from "@/lib/types"; export interface ProverbsCardProps { state: AgentState; setState: (state: AgentState) => void; } export function ProverbsCard({ state, setState }: ProverbsCardProps) { // `state` is undefined until the agent syncs (V2 useAgent), so guard it. const proverbs = state?.proverbs ?? []; return (
This is a demonstrative page, but it could be anything you want! 🪁
{proverb}
No proverbs yet. Ask the assistant to add some!
)}