/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import './Input.css'; import * as React from 'react'; type Props = Readonly<{ 'data-test-id'?: string; accept?: string; label: string; onChange: (files: FileList) => void; }>; export default function FileInput({ accept, label, onChange, 'data-test-id': dataTestId, }: Props): JSX.Element { return (
onChange(e.target.files)} data-test-id={dataTestId} />
); }