"use client";

import { Input } from "@/app/shadcn_components/ui/input";

export function SelectFolder({
  handleOnChange,
  accept = ".xml,.pdf,.docx",
}: {
  handleOnChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  accept?: string;
}) {
  return (
    <Input
      id="folder-uploader"
      type="file"
      accept={accept}
      multiple={true}
      className="cursor-pointer"
      onChange={handleOnChange}
    />
  );
}
