import { dataHook } from "./../../wix-rich-content-common/index.js";
import { TEXT_BUTTON_STRIKETHROUGH } from "./data-hooks.js";
const createStrikethroughTestkit = () => {
  return {
    content: {},
    toolbars: {
      createTextButtonToolbars: (getTextButtonToolbarBase) => ({
        isActive: async () => {
          const active = getTextButtonToolbarBase().$(
            dataHook([TEXT_BUTTON_STRIKETHROUGH, "active"])
          );
          return active.exists();
        },
        isDisabled: async () => {
          const button = getTextButtonToolbarBase().$(dataHook(TEXT_BUTTON_STRIKETHROUGH));
          const element = await button.getNative();
          return element?.hasAttribute("disabled") ?? false;
        },
        click: async () => {
          const button = getTextButtonToolbarBase().$(dataHook(TEXT_BUTTON_STRIKETHROUGH));
          await button.click();
        }
      })
    }
  };
};
export {
  createStrikethroughTestkit
};
//# sourceMappingURL=strikethrough.testkit.js.map
