'use client'; import React from 'react'; import { cn, withRef } from '@udecode/cn'; import { useMediaState } from '@udecode/plate-media/react'; import { ResizableProvider } from '@udecode/plate-resizable'; import { PlateElement, withHOC } from '@udecode/plate/react'; import { Caption, CaptionTextarea } from './caption'; export const MediaAudioElement = withHOC( ResizableProvider, withRef( ({ children, className, nodeProps, ...props }, ref) => { const { align = 'center', readOnly, unsafeUrl } = useMediaState(); return (
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
{children}
); }, ), );