import * as React from 'react'
import { withTheme } from 'utils'
import { storiesOf } from '@storybook/react'
import Title from '.'
import Box from 'Box'
import Subtitle from 'Subtitle'
// import Link from '../Link'

const stories = storiesOf('Title + Subtitle', module)

stories.add('with different sizes',
  withTheme(() => {
    return (
      <Box>
        <Title size='huge'>Title Huge</Title>
        <Subtitle size='large'>This is Subtitle Large, under title</Subtitle>
        <Title size='xlarge'>Title XLarge</Title>
        <Subtitle size='normal'>This is Subtitle Normal, under title</Subtitle>
        <Title size='large'>Title Large</Title>
        <Subtitle size='small'>This is Subtitle Small, under title</Subtitle>
        <Title size='normal'>Title Normal</Title>
        <Title size='tiny'>Title Tiny</Title>
      </Box>
    )
  })
)

stories.add('with colors',
  withTheme(() => {
    return (
      <Box>
        <Title size='large'>Title Default</Title>
        <Subtitle size='small' color='gray'>This is Subtitle gray, under title</Subtitle>
        <Title size='large' color='primary'>Title Primary</Title>
        <Subtitle size='small' color='primary' tone={2}>This is Subtitle primary tone 1, under title</Subtitle>
        <Title size='large' color='success'>Title Success</Title>
        <Subtitle size='small' color='danger' tone={2}>This is Subtitle success tone 1, under title</Subtitle>
      </Box>
    )
  })
)

  // .add('as link colors', withTheme(() => {
  //   return (
  //     <Box>
  //       <Link>
  //         <Title size='large'>Title Default</Title>
  //       </Link>
  //       <Link color='black'>
  //         <Title size='large'>Title Black</Title>
  //       </Link>
  //     </Box>
  //   )
  // }))
