import { Partial } from "$fresh/runtime.ts"; import { PageProps } from "$fresh/server.ts"; export default function SlotDemo(props: PageProps) { const update = props.url.searchParams.has("swap"); return (

foo

some text

{update && (

foo

)}

swap

); }