// — a control for the header row of the disclosure it is in: // the refresh picker of a card that polls. The body owns the control's state, so // a body renders it where it needs the state, and it shows in the header, beside // the chevron, instead of taking a row of the body. It is a sibling of the // header's toggle, not inside it, so pressing it does not fold the card. A // disclosure that is shut has no body, so the control is there only while open. import type { ComponentChildren } from "preact"; import "./DisclosureAction.css"; export function DisclosureAction({ children, }: { children: ComponentChildren; }) { return
{children}
; }