10 lines
237 B
TypeScript
10 lines
237 B
TypeScript
import { Signal } from "@preact/signals";
|
|
|
|
export interface IslandConditionalProps {
|
|
show: Signal<boolean>;
|
|
}
|
|
|
|
export default function IslandConditional({ show }: IslandConditionalProps) {
|
|
return show.value ? <>it works</> : null;
|
|
}
|