import { Signal } from "@preact/signals"; import { ComponentChildren } from "preact"; export interface IslandConditionalProps { show: Signal; children?: ComponentChildren; } export default function IslandConditional( { show, children }: IslandConditionalProps, ) { return (
{show.value ?

island content

: <>{children}}
); }