Validación de archivos reaccionistas

 required: {
          value: true,
          message: "Product image is required.",
        },
      validate: {
        lessThan10MB: (files) => files[0]?.size < 10000000 || "Max 10MB",
        acceptedFormats: (files) =>
          ["image/jpeg", "image/png", "image/gif"].includes(files[0]?.type) ||
          "Only PNG, JPEG e GIF",
      },
sushangmi55