{"ast":null,"code":"import React from 'react';\nimport PriceCardWrapper, { Title, Price, PricingHeader, PricingList, PriceAction, Button } from './PriceCard.style';\nexport default function PriceCard(_ref) {\n  var className = _ref.className,\n      data = _ref.data,\n      buttonText = _ref.buttonText;\n  var price, pricingPlan;\n\n  if (data.type === 'annually') {\n    price = Math.ceil(data.price) * 12;\n    pricingPlan = '/per year';\n  } else {\n    price = data.price;\n    pricingPlan = '/per month';\n  }\n\n  return React.createElement(PriceCardWrapper, {\n    className: className\n  }, React.createElement(PricingHeader, null, React.createElement(Title, null, data.title), React.createElement(Price, null, React.createElement(\"strong\", null, \"$\", price, \" USD\"), React.createElement(\"span\", null, pricingPlan))), React.createElement(PricingList, null, data.features.map(function (feature) {\n    return React.createElement(\"li\", {\n      key: feature.title\n    }, feature.icon, React.createElement(\"span\", null, feature.title));\n  })), React.createElement(PriceAction, null, React.createElement(Button, null, buttonText)));\n}","map":null,"metadata":{},"sourceType":"module"}