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

const ContentFields = ({
  logoLabel = 'Logo',
  logoName = 'img',
  logoDefault = {
    override_inherited_src: false,
    src: null,
    alt: null,
    loading: 'disabled',
  },
  showLoading = true,
}: ContentFieldsProps) => {
  return (
    <LogoField
      label={logoLabel}
      name={logoName}
      showLoading={showLoading}
      required={true}
      default={logoDefault}
    />
  );
};

export default ContentFields;
