alinea
Version:
Headless git-based CMS
23 lines (21 loc) • 398 B
JavaScript
import "../../chunks/chunk-NZLE2WMY.js";
// src/field/view/View.ts
import {
section
} from "alinea/core/Section";
var ViewSection = class {
view;
definition = {};
fields = {};
sections = [];
constructor(view2) {
this.view = view2;
}
};
function view(view2) {
return section(new ViewSection(typeof view2 === "string" ? view2 : () => view2));
}
export {
ViewSection,
view
};