import React from 'react'
import { storiesOf } from '@storybook/react'
import { Price, OldPrice, CurrentPrice } from 'fyndiq-component-price'

storiesOf('Price', module)
  .addWithInfo('default', () => (
    <Price>
      <CurrentPrice>149Kr</CurrentPrice>
      <OldPrice>200Kr</OldPrice>
    </Price>
  ))
  .addWithInfo('without old price', () => (
    <Price>
      <CurrentPrice>149Kr</CurrentPrice>
    </Price>
  ))
  .addWithInfo('old price on top', () => (
    <Price>
      <OldPrice>200Kr</OldPrice>
      <CurrentPrice>149Kr</CurrentPrice>
    </Price>
  ))

@@ -224,32 +224,33 @@
 CurrentPrice%3E149
+ 
 Kr%3C/CurrentPrice
@@ -262,32 +262,33 @@
    %3COldPrice%3E200
+ 
 Kr%3C/OldPrice%3E%0A  
@@ -374,32 +374,33 @@
 CurrentPrice%3E149
+ 
 Kr%3C/CurrentPrice
@@ -493,16 +493,17 @@
 rice%3E200
+ 
 Kr%3C/OldP
@@ -531,16 +531,17 @@
 rice%3E149
+ 
 Kr%3C/Curr
@@ -548,28 +548,191 @@
 entPrice%3E%0A    %3C/Price%3E%0A  ))%0A
+  .addWithInfo('no emphasize', () =%3E (%0A    %3CPrice emphasize=%7Bfalse%7D%3E%0A      %3CCurrentPrice%3E149 Kr%3C/CurrentPrice%3E%0A      %3COldPrice%3E200 kr%3C/OldPrice%3E%0A    %3C/Price%3E%0A  ))%0A

Update Price story