import { FieldSchema, FieldProcessorAdt } from '@ephox/boulder';
import { BodyComponentSpec, BodyComponent } from './BodyComponent';

export interface BarSpec {
  type: 'bar';
  items: BodyComponentSpec[];
}

export interface Bar {
  type: 'bar';
  items: BodyComponent[];
}

export const createBarFields = (itemsField: FieldProcessorAdt): FieldProcessorAdt[] => [
  FieldSchema.strictString('type'),
  itemsField
];
