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

const ContentFields = ({
  linkLabel = 'Link',
  linkName = 'link',
  linkDefault = {
    url: {
      type: 'EXTERNAL',
      content_id: null,
      href: 'https://www.hubspot.com',
    },
  },
}: ContentFieldsProps) => {
  return <LinkField label={linkLabel} name={linkName} default={linkDefault} />;
};

export default ContentFields;
