content: import React from 'react'
  import { Title, Link } from 'components'
  import { classNames } from 'helpers'
  import s from './AccountTitle.sass'
  
  // TODO: sidebar title integration
  const AccountTitle = ({
    start = 'Для продолжения необходимо',
    firstLink = {content: 'войти', link: '?account&signin'},
    end = 'или', lastLink = {content:'зарегистрироваться.', link: '?account&signup'},
    children, className
  }) => {
    if (children) {
      return (
        <Title size="5" className={classNames(s.title, s.title_child, className)}>
          {children}
        </Title>
      )
    }
  
    return (
      <Title size="5" className={s.title}>
        {start}
        <Link to={firstLink.link} inherit className={s.link}>{firstLink.content}</Link> {end}
        <Link to={lastLink.link} inherit className={s.link}>{lastLink.content}</Link>
      </Title>
    )
  };
  
  export default AccountTitle;
  
  