summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/viewer.sections.subscribe.js
blob: 31d44ba10c388e037260f94f5f7e4be66d45a6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React, { Component } from 'react'

import actions from 'app/actions'
import { Arrow } from '../nav/viewer.icons'
import SubscriptionForm from '../forms/subscription.form'

export default class ViewerSectionsShare extends Component {
  render() {
    return (
      <div className='nav-subscribe'>
        <div>
          <SubscriptionForm />
          <SubscribeLink type='down' />
        </div>
      </div>
    )
  }
}

const SubscribeLink = ({ type }) => (
  <div className="nav-return" onClick={() => actions.viewer.hideNavComponent('subscribe')}>
    <Arrow type={type} />
    {'Subscribe'}
  </div>
)