import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { Backdrop, LoaderWrapper, StyledDivider, StyledLinearProgress, } from './styles';
export const Loader = ({ isLoading = false, isDisabled = false, isVisibleDivider = true, }) => {
    return (_jsxs(_Fragment, { children: [(isLoading || isDisabled) && _jsx(Backdrop, {}), _jsxs(LoaderWrapper, { children: [isLoading && _jsx(StyledLinearProgress, {}), !isLoading && isVisibleDivider && _jsx(StyledDivider, {})] })] }));
};
