import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2019-2025 GoodData Corporation
import { memo } from "react";
import { useIntl } from "react-intl";
import { Button } from "@gooddata/sdk-ui-kit";
import { messages } from "../../../../../locales.js";
import { getTranslation } from "../../../../utils/translations.js";
export const CustomColorButton = memo(function CustomColorButton({ onClick }) {
    const intl = useIntl();
    const handleClick = () => {
        onClick();
    };
    return (_jsx("div", { className: "gd-color-drop-down-custom-section", children: _jsx(Button, { value: getTranslation(messages["customColor"].id, intl), className: "gd-button-link gd-color-drop-down-custom-section-button s-custom-section-button", onClick: handleClick }) }));
});
//# sourceMappingURL=CustomColorButton.js.map