import { faBan } from "@fortawesome/free-solid-svg-icons"; import React from "react"; import { Button, Form, FormControlProps, InputGroup } from "react-bootstrap"; import { useIntl } from "react-intl"; import { Icon } from "./Icon"; interface IBulkUpdateTextInputProps extends FormControlProps { valueChanged: (value: string | undefined) => void; unsetDisabled?: boolean; as?: React.ElementType; } export const BulkUpdateTextInput: React.FC = ({ valueChanged, unsetDisabled, ...props }) => { const intl = useIntl(); const unsetClassName = props.value === undefined ? "unset" : ""; return ( ` : undefined } onChange={(event) => valueChanged(event.currentTarget.value)} /> {!unsetDisabled ? ( ) : undefined} ); };