import { fields } from '@keystatic/core';
import { wrapper } from '@keystatic/core/content-components';
import { dicesIcon } from '@keystar/ui/icon/icons/dicesIcon';

const rpgsystemComponent = {
  RPGSystem: wrapper({
    label: 'RPG System',
    icon: dicesIcon,
    schema: {
      system: fields.select({
        label: 'System',
        options: [
          {
            label: 'Non-specific',
            value: 'none',
          },
          {
            label: 'Neoclassical Geek Revival',
            value: 'ngr',
          },
          {
            label: 'Barbarians of Lemuria',
            value: 'bol',
          },
          {
            label: 'The Burning Wheel',
            value: 'bw',
          },
          {
            label: 'Questworlds',
            value: 'qw',
          },
          {
            label: 'Shadow of the Daemon Lord',
            value: 'sotdl',
          },
        ],
        defaultValue: 'none',
      }),
    },
  }),
};

export default rpgsystemComponent;
