import type { Composition } from "../../core/composition.ts"; import { createStreamPiece, type StreamDef } from "../../stream/piece.ts"; import defaults from "./defaults.json"; import { estimateLength, layout } from "./layout.ts"; import { schema } from "./schema.ts"; import { descentView } from "./view.ts"; const def: StreamDef = { id: "04-descent", schema, layout, estimateLength, view: descentView }; export const descent: Composition = { id: def.id, title: "descent", schema, defaults, create: (view, params) => createStreamPiece(def, view, params), };