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 (

Proverbs

This is a demonstrative page, but it could be anything you want! 🪁


{proverbs.map((proverb, index) => (

{proverb}

))}
{proverbs.length === 0 && (

No proverbs yet. Ask the assistant to add some!

)}
); }