import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import cx from "classnames";
import { FormattedMessage } from "react-intl";
import { Button } from "@gooddata/sdk-ui-kit";
export function InsightListNoData({ hasNoMatchingData, isUserInsights, showNoDataCreateButton, onCreateButtonClick, }) {
    return (_jsx("div", { className: cx("gd-visualizations-list-no-data", "gd-no-data", {
            "gd-visualization-list-not-found": hasNoMatchingData,
        }), children: hasNoMatchingData ? (_jsx("span", { className: "s-visualization-list-no-data-message", children: _jsx(FormattedMessage, { id: "visualizationsList.noVisualizationsFound" }) })) : (_jsxs(_Fragment, { children: [
                _jsx("span", { className: "s-visualization-list-no-data-message", children: isUserInsights ? (_jsx(FormattedMessage, { id: "visualizationsList.noUserInsights" })) : (_jsx(FormattedMessage, { id: "visualizationsList.noInsights" })) }), " ", showNoDataCreateButton ? (_jsx(Button, { className: "gd-button-link s-create-new-insight", tagName: "a", onClick: onCreateButtonClick, value: _jsx(FormattedMessage, { id: "visualizationsList.create" }) })) : null] })) }));
}
//# sourceMappingURL=InsightListNoData.js.map