import { STORE_PACKAGE_IMAGE_MAX_COUNT } from '@dukang/shared-types';
import MultiImageUpload from './MultiImageUpload';

type Props = {
  value?: string[];
  onChange?: (urls: string[]) => void;
};

/** 套餐多图：批量上传，最多 STORE_PACKAGE_IMAGE_MAX_COUNT 张 */
export default function PackageImagesUpload({ value, onChange }: Props) {
  return (
    <MultiImageUpload
      bizType="STORE_PACKAGE"
      mediaType="IMAGE"
      maxCount={STORE_PACKAGE_IMAGE_MAX_COUNT}
      value={value}
      onChange={onChange}
      tip={`套餐图片最多 ${STORE_PACKAGE_IMAGE_MAX_COUNT} 张，支持批量选择上传，可逐张删除`}
    />
  );
}
