// @ts-nocheck import React from 'react'; import classNames from 'classnames'; import { get } from 'lodash'; import '@/style/pages/Subscription/PlanPeriodRadio.scss'; import withPlan from '@/containers/Subscriptions/withPlan'; import { saveInvoke, compose } from '@/utils'; /** * Billing period. */ function BillingPeriod({ // #ownProps label, value, selectedOption, onSelected, period, // #withPlan price, currencyCode, }) { const handlePeriodClick = () => { saveInvoke(onSelected, value); }; return (
{label}
{price} {currencyCode} {label}
); } export default compose( withPlan(({ plan }, state, { period }) => ({ price: get(plan, `price.${period}`), currencyCode: get(plan, 'currencyCode'), })), )(BillingPeriod);