import type { ReactNode } from "react"; type ReadingCardProps = { title: string; minutes: number; children?: ReactNode; }; // Type annotations and JSX, together on the page. export function ReadingCard({ title, minutes, children, }: ReadingCardProps) { return (

{title}

{minutes} minutes of quiet reading

{children &&
{children}
}
); }