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 { orbitsView } from "./view.ts"; const def: StreamDef = { id: "02-orbits", schema, layout, estimateLength, view: orbitsView }; export const orbits: Composition = { id: def.id, title: "orbits", schema, defaults, create: (view, params) => createStreamPiece(def, view, params), };