/* * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ import React, { Fragment, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import { DocumentInfoModal } from '../document-bar/document-info/document-info-modal' import { SidebarButton } from './sidebar-button' import type { SpecificSidebarEntryProps } from './types' export const DocumentInfoSidebarEntry: React.FC = ({ className, hide }) => { const [showModal, setShowModal] = useState(false) useTranslation() return ( setShowModal(true)} data-cy={'sidebar-btn-document-info'}> setShowModal(false)} /> ) }