UNPKG

@progress/kendo-react-spreadsheet

Version:
32 lines (31 loc) 1.11 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import * as e from "react"; import { clearCssIcon as a } from "@progress/kendo-svg-icons"; import { Button as m } from "@progress/kendo-react-buttons"; import { useLocalization as c } from "@progress/kendo-react-intl"; import { keys as o, messages as s } from "../messages.mjs"; const u = (n) => { const { spreadsheetRef: t } = n, r = e.useCallback(() => { t.current && t.current.executeCommand({ command: "PropertyCleanCommand" }); }, []); return /* @__PURE__ */ e.createElement( m, { type: "button", icon: "clean-css", svgIcon: a, fillMode: "flat", onClick: r, title: c().toLanguageString(o.cleanFormatting, s[o.cleanFormatting]) } ); }; export { u as CleanFormatting };