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

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

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

export default InplaceEdit;
