Newer
Older
import styled from 'styled-components'
import { EXT_NAME } from '../../utils/constants'
import { BaseProps } from '../types'
import { goHome, goTo } from '../utils/routing'
const Header: React.FC<Props> = ({ className, showAdd, showBack, text }) => {
const toggleAdd = () => goTo('/account/import-qr')
return (
<div className={className}>
<div className='text-holder'>
{showBack && (
<button className='back-button' onClick={goHome}>
Back
</button>
)}
<div>{text || EXT_NAME}</div>
display: flex;
justify-content: space-between;
align-items: center;