meshtastic/src/pages/downloads/_components/HeaderText.tsx
2022-02-04 09:34:27 -07:00

15 lines
400 B
TypeScript

import React from 'react';
export const HeaderText = ({type, text, link}): JSX.Element => {
const Header = type;
return (
<Header className="anchor anchorWithHideOnScrollNavbar_node_modules-@docusaurus-theme-classic-lib-next-theme-Heading-styles-module">
{text}
{link ? <a className="hash-link" href={`#${link}`} title="Direct link to heading"/> : null}
</Header>
);
};