/* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable jsx-a11y/media-has-caption */ import type { ReactNode } from 'react' import { useEffect, useMemo, useState } from 'react' import { getAssetType } from 'utils/getAssetType' export interface MetadataFormGroupProps { title: string subtitle: ReactNode relatedAsset?: File children?: ReactNode } export const MetadataFormGroup = (props: MetadataFormGroupProps) => { const { title, subtitle, relatedAsset, children } = props const [htmlContents, setHtmlContents] = useState('') const videoPreview = useMemo( () => (