1import type { Composition } from "../../core/composition.ts";
2import { createStreamPiece, type StreamDef } from "../../stream/piece.ts";
3import defaults from "./defaults.json";
4import { estimateLength, layout } from "./layout.ts";
5import { schema } from "./schema.ts";
6import { descentView } from "./view.ts";
8const def: StreamDef = { id: "04-descent", schema, layout, estimateLength, view: descentView };
10export const descent: Composition = {
11 id: def.id,
12 title: "descent",
13 schema,
14 defaults,
15 create: (view, params) => createStreamPiece(def, view, params),
16};