/* * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ import { DateTime } from 'luxon' import React from 'react' import { Trans, useTranslation } from 'react-i18next' import { InternalLink } from '../common/links/internal-link' import { ShowIf } from '../common/show-if/show-if' import { DocumentInfoLineWithTimeMode, DocumentInfoTimeLine } from '../editor-page/document-bar/document-info/document-info-time-line' import './document-infobar.scss' export interface DocumentInfobarProps { changedAuthor: string changedTime: DateTime createdAuthor: string createdTime: DateTime editable: boolean noteId: string viewCount: number } export const DocumentInfobar: React.FC = ({ changedAuthor, changedTime, createdAuthor, createdTime, editable, noteId, viewCount }) => { const { t } = useTranslation() return (
 

{ viewCount }
 
) }