import React from 'react';
import { CellAudioEdit } from '@wix/patterns-fields';
import type { CellEditProps } from '../../types';

export const AudioEdit: React.FC<CellEditProps<string | null>> = ({
  value,
  onChange,
  onCommit,
  onCancel,
  onStartEdit,
  inputRef,
}) => (
  <CellAudioEdit
    value={value}
    onChange={onChange}
    onCommit={onCommit}
    onCancel={onCancel}
    onStartEdit={onStartEdit}
    inputRef={inputRef}
    dataHook="audio-edit"
  />
);
