mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04:00

* Adjust editor config Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
28 lines
846 B
TypeScript
28 lines
846 B
TypeScript
/*
|
|
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import React from 'react'
|
|
import { Button } from 'react-bootstrap'
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
import { LinkContainer } from 'react-router-bootstrap'
|
|
import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon'
|
|
|
|
export const NewUserNoteButton: React.FC = () => {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<LinkContainer to={ '/new' } title={ t('landing.navigation.newNote') }>
|
|
<Button
|
|
variant="primary"
|
|
size="sm"
|
|
className="d-inline-flex align-items-center">
|
|
<ForkAwesomeIcon icon="plus" className="mx-1"/>
|
|
<span>
|
|
<Trans i18nKey='landing.navigation.newNote'/>
|
|
</span>
|
|
</Button>
|
|
</LinkContainer>
|
|
)
|
|
}
|