/** * TRANSFORM REPRO: patternized filter callback should lower callback-local const initializers */ import { pattern, UI, VNode, } from "commonfabric"; interface FileEntry { name: string; type: "file" | "folder"; } interface Input { files: FileEntry[]; } interface Output { [UI]: VNode; } export default pattern(({ files }) => { return { [UI]: (