import type { FieldProcessor } from '@ephox/boulder'; import * as ComponentSchema from '../../core/ComponentSchema'; import type { BodyComponent, BodyComponentSpec } from './BodyComponent'; export interface BarSpec { type: 'bar'; items: BodyComponentSpec[]; } export interface Bar { type: 'bar'; items: BodyComponent[]; } export const createBarFields = (itemsField: FieldProcessor): FieldProcessor[] => [ ComponentSchema.type, itemsField ];