message: Cell: remove CellWrapper
diff: @@ -4,7 +4,7 @@ import { warnOnce } from '../../lib/warnOnce';
  import { getClassName } from '../../helpers/getClassName';
  import { ANDROID, IOS, VKCOM } from '../../lib/platform';
  import SimpleCell, { SimpleCellProps } from '../SimpleCell/SimpleCell';
  -import { HasPlatform, HasRootRef } from '../../types';
  +import { HasPlatform } from '../../types';
  import { Removable, RemovableProps } from '../Removable/Removable';
  import { usePlatform } from '../../hooks/usePlatform';
  import { useDraggable } from './useDraggable';
  @@ -13,10 +13,6 @@ import { CellDragger } from './CellDragger/CellDragger';
  import { CellCheckbox, CellCheckboxProps } from './CellCheckbox/CellCheckbox';
  import './Cell.css';
  -const CellWrapper: React.FC<HasRootRef<HTMLDivElement> & RemovableProps> = ({ getRootRef, children, removePlaceholder, onRemove, ...restProps }) => (
  - <div ref={getRootRef} {...restProps}>{children}</div>
  -);
  -
  export interface CellProps extends SimpleCellProps, HasPlatform, RemovableProps {
  mode?: 'removable' | 'selectable';
  /**
  @@ -127,25 +123,18 @@ export const Cell: React.FC<CellProps> = ({
  const simpleCellDisabled = draggable && !selectable || removable || disabled;
  const hasActive = !simpleCellDisabled && !dragging;
  - const WrapperComponent = removable ? Removable : CellWrapper;
  -
  - return (
  - <WrapperComponent
  - vkuiClass={classNames(getClassName('Cell', platform), {
  + const cellClasses = classNames(getClassName('Cell', platform), {
  'Cell--dragging': dragging,
  'Cell--removable': removable,
  'Cell--selectable': selectable,
  'Cell--disabled': disabled,
  - })}
  - getRootRef={rootElRef}
  - removePlaceholder={removePlaceholder}
  - onRemove={(e) => onRemove(e, rootElRef?.current)}
  - >
  + });
  +
  + const simpleCell = (
  <SimpleCell
  hasActive={hasActive}
  hasHover={hasActive}
  {...restProps}
  - getRootRef={rootElRef}
  disabled={simpleCellDisabled}
  Component={selectable ? 'label' : Component}
  before={
  @@ -162,6 +151,20 @@ export const Cell: React.FC<CellProps> = ({
  </React.Fragment>
  }
  />
  - </WrapperComponent>
  );
  +
  + if (removable) {
  + return (
  + <Removable
  + vkuiClass={cellClasses}
  + getRootRef={rootElRef}
  + removePlaceholder={removePlaceholder}
  + onRemove={(e) => onRemove(e, rootElRef?.current)}
  + >
  + {simpleCell}
  + </Removable>
  + );
  + }
  +
  + return (<div vkuiClass={cellClasses} ref={rootElRef}>{simpleCell}</div>);
  };
  