import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2023-2026 GoodData Corporation
import cx from "classnames";
import { useIntl } from "react-intl";
import { Button } from "../Button/Button.js";
/**
 * @internal
 */
export function BackButton({ onClick, className, disabled }) {
    const intl = useIntl();
    return (_jsx(Button, { value: "", className: cx("gd-button-primary gd-button-icon-only gd-icon-navigateleft gd-share-dialog-header-back-button", className), onClick: onClick, disabled: disabled, accessibilityConfig: {
            ariaLabel: intl.formatMessage({ id: "dialogs.backButtonLabel" }),
        } }));
}
