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