import type { UnitInplaceEditProps } from '@features/unit-editor/core/types/unit';
import InplaceToolbar from '@features/unit-editor/components/unit-toolbar/presets/inplace-toolbar';
import { MediaUnitContent } from './edit';

const InplaceEdit = ({ editor, unit }: UnitInplaceEditProps) => {
  return (
    <div>
      <div>
        <InplaceToolbar editor={editor} unit={unit} features={{ align: true, anker: true }} />
      </div>

      <div>
        <MediaUnitContent unit={unit} editor={editor} />
      </div>
    </div>
  );
};

export default InplaceEdit;
