import React from "react"; import type { ComponentProps } from "widgets/BaseComponent"; import { BaseButton } from "widgets/ButtonWidget/component"; import { Colors } from "constants/Colors"; function FilePickerComponent(props: FilePickerComponentProps) { let computedLabel = props.label; if (props.files && props.files.length) { computedLabel = `${props.files.length} files selected`; } return ( ); } export interface FilePickerComponentProps extends ComponentProps { label: string; openModal: () => void; isLoading: boolean; files?: any[]; buttonColor: string; borderRadius: string; boxShadow?: string; shouldFitContent: boolean; maxWidth?: number; minWidth?: number; minHeight?: number; } FilePickerComponent.defaultProps = { backgroundColor: Colors.GREEN, }; export default FilePickerComponent;