import { collection } from '@keystatic/core';

import { createArticleField } from '@/keystatic/fields/general/article';
import { wbComponents } from '@/keystatic/components/worldburner';

export default collection({
  label: 'WB – Posts',
  slugField: 'title',
  path: 'content/worldburner/posts/*',
  format: {
    contentField: 'content',
  },
  entryLayout: 'content',
  schema: {
    ...createArticleField('worldburner/posts', '', wbComponents),
  },
});
