// @ts-nocheck import React from 'react'; import { Field } from 'formik'; import * as R from 'ramda'; import { T, SubscriptionPeriods } from '@/components'; import withPlan from './withPlan'; /** * Sunscription periods enhanced. */ const SubscriptionPeriodsEnhanced = R.compose( withPlan(({ plan }) => ({ plan })), )(({ plan, ...restProps }) => { if (!plan) return null; return ; }); /** * Billing periods. */ export default function BillingPeriods() { return (

{({ field: { value }, form: { values, setFieldValue } }) => ( { setFieldValue('period', period); }} /> )}
); }