import { isSection } from "https://deno.land/x/live@1.48.5/blocks/section.ts";
type
<TManifest extends AppManifest = Manifest, K extends keyof TManifest["sections"] = keyof TManifest["sections"], Sec extends TManifest["sections"][K] extends { default: ComponentFunc<infer Props>; } ? PreactComponent<Props> : unknown = TManifest["sections"][K] extends { default: ComponentFunc<infer Props>; } ? PreactComponent<Props> : unknown>(s: Sec | Section, section: K) => s is Sec