import { jsx as _jsx } from "react/jsx-runtime";
import { Input as AntInput } from "antd";
import { isEmpty } from "lodash";
import { useEffect, useRef, useState } from "react";
export const Input = (props) => {
    const inputRef = useRef();
    const [isInputEmpty, setIsInputEmpty] = useState(true);
    useEffect(() => {
        setIsInputEmpty(isEmpty(inputRef.current?.state?.value));
    }, []);
    return (_jsx(AntInput, { ...props, ref: inputRef, className: `nl-input-default ${props.className} ${isInputEmpty ? "nl-input-empty" : ""}`, onChangeCapture: (e) => {
            setIsInputEmpty(isEmpty(e.currentTarget.value));
        } }));
};
//# sourceMappingURL=Input.js.map