import { createSplitProps } from '../../utils/create-split-props.ripple';
import type { UseImageCropperProps } from './use-image-cropper.ripple';

const splitProps = createSplitProps<UseImageCropperProps>();

export function splitImageCropperProps<T extends UseImageCropperProps & Record<string, any>>(props: T) {
  return splitProps(props, [
    'aspectRatio',
    'cropShape',
    'defaultFlip',
    'defaultRotation',
    'defaultZoom',
    'fixedCropArea',
    'flip',
    'id',
    'ids',
    'initialCrop',
    'maxHeight',
    'maxWidth',
    'maxZoom',
    'minHeight',
    'minWidth',
    'minZoom',
    'nudgeStep',
    'nudgeStepCtrl',
    'nudgeStepShift',
    'onCropChange',
    'onFlipChange',
    'onRotationChange',
    'onZoomChange',
    'rotation',
    'translations',
    'zoom',
    'zoomSensitivity',
    'zoomStep',
  ]);
}
