"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RTLToolbarButton=RTLToolbarButton;const element_1=require("@wordpress/element"),components_1=require("@wordpress/components"),i18n_1=require("@wordpress/i18n"),icons_1=require("@wordpress/icons");function RTLToolbarButton({direction:e,onChange:o}){return(0,i18n_1.isRTL)()?(0,element_1.createElement)(components_1.ToolbarButton,{icon:icons_1.formatLtr,title:(0,i18n_1._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:()=>null==o?void 0:o("ltr"===e?void 0:"ltr")}):null}