[@warning "-26-27-32"]; open Melange_json.Primitives; module Square = { [@react.component] let make = (~isExpanded) => {
{React.string("^")}
; }; }; [@react.client.component] let make = ( ~id: int, ~title: string, ~children: React.element, ~expandedChildren: React.element, ) => { let router = ClientRouter.useRouter(); let (isExpanded, setIsExpanded) = RR.useStateValue(false); let (isPending, startTransition) = React.useTransition(); let isActive = switch (router.location.selectedId) { | Some(selectedId) => selectedId == id | None => false };
{ startTransition(() => { router.navigate({ selectedId: Some(id), isEditing: false, searchText: router.location.searchText, }) }) }}> children {isExpanded ? expandedChildren : React.null}
setIsExpanded(!isExpanded)}>
; };