import { ChoiceField } from '@hubspot/cms-components/fields';
import type { ContentFieldsProps } from './types.js';

const ContentFields = ({
  listTypeName = 'listType',
  listTypeLabel = 'List type',
  listTypeDefault = 'unordered',
}: ContentFieldsProps) => {
  return (
    <ChoiceField
      label={listTypeLabel}
      name={listTypeName}
      default={listTypeDefault}
      choices={[
        ['ordered', 'Ordered List'],
        ['unordered', 'Unordered List'],
      ]}
    />
  );
};

export default ContentFields;
