/* ============================================================================ * Copyright (c) Palo Alto Networks * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * ========================================================================== */ import React from "react"; import { translate } from "@docusaurus/Translate"; import clsx from "clsx"; export interface Props { readonly className?: string; readonly onClick: React.MouseEventHandler; readonly isEnabled: boolean; } export default function WordWrapButton({ className, onClick, isEnabled, }: Props): React.JSX.Element | null { const title = translate({ id: "theme.CodeBlock.wordWrapToggle", message: "Toggle word wrap", description: "The title attribute for toggle word wrapping button of code block lines", }); return ( ); }