<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { Row, Field, CurrencySelector, CycleSelector, SubTitle, useModals, LinkButton } from 'react-components';
import PlanCard from './PlanCard/PlanCard';
import { CURRENCIES, CYCLE } from 'proton-shared/lib/constants';
import { c } from 'ttag';
import PlanComparisonModal from './PlanComparisonModal';
import OSIcon from './OSIcon';

const { MONTHLY, YEARLY, TWO_YEARS } = CYCLE;

const PlanStep = ({ plans, onSelectPlan, onChangeCurrency, onChangeCycle, model, signupAvailability }) => {
    const { createModal } = useModals();

    const handleSelect = (planName) => () => onSelectPlan({ ...model, planName });
    const handleComparisonClick = () =>
        createModal(<PlanComparisonModal defaultCycle={model.cycle} defaultCurrency={model.currency} />);

    const supportedOS = (
        <>
            <OSIcon os="android" />
            <OSIcon os="windows" />
            <OSIcon os="macos" />
            <OSIcon os="ios" />
            <OSIcon os="linux" />
        </>
    );

    return (
        <>
            <Row className="flex-items-vcenter border-top pt3">
                <div className="flex-item-fluid">
                    <SubTitle>{c('Title').t`Select a plan`}</SubTitle>
                </div>
                <div className="mlauto">
                    <Field className="mr1">
                        <CycleSelector
                            cycle={model.cycle}
                            onSelect={onChangeCycle}
                            options={[
                                { text: c('Billing cycle option').t`Monthly`, value: MONTHLY },
                                { text: c('Billing cycle option').t`Annually SAVE 20%`, value: YEARLY },
                                { text: c('Billing cycle option').t`Two-year SAVE 33%`, value: TWO_YEARS }
                            ]}
                        />
                    </Field>
                    <Field>
                        <CurrencySelector currency={model.currency} onSelect={onChangeCurrency} />
                    </Field>
                </div>
            </Row>
            <div className="flex flex-nowrap">
                {plans.map((plan) => (
                    <PlanCard<commit_msg>Fix selects on signup (#161)<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { Row, Field, CurrencySelector, CycleSelector, SubTitle, useModals, LinkButton } from 'react-components';
import PlanCard from './PlanCard/PlanCard';
import { CURRENCIES, CYCLE } from 'proton-shared/lib/constants';
import { c } from 'ttag';
import PlanComparisonModal from './PlanComparisonModal';
import OSIcon from './OSIcon';

const { MONTHLY, YEARLY, TWO_YEARS } = CYCLE;

const PlanStep = ({ plans, onSelectPlan, onChangeCurrency, onChangeCycle, model, signupAvailability }) => {
    const { createModal } = useModals();

    const handleSelect = (planName) => () => onSelectPlan({ ...model, planName });
    const handleComparisonClick = () =>
        createModal(<PlanComparisonModal defaultCycle={model.cycle} defaultCurrency={model.currency} />);

    const supportedOS = (
        <>
            <OSIcon os="android" />
            <OSIcon os="windows" />
            <OSIcon os="macos" />
            <OSIcon os="ios" />
            <OSIcon os="linux" />
        </>
    );

    return (
        <>
            <Row className="flex-items-vcenter border-top pt3">
                <div className="flex-item-fluid">
                    <SubTitle>{c('Title').t`Select a plan`}</SubTitle>
                </div>
                <div className="mlauto">
                    <Field className="mr1 auto">
                        <CycleSelector
                            cycle={model.cycle}
                            onSelect={onChangeCycle}
                            options={[
                                { text: c('Billing cycle option').t`Monthly`, value: MONTHLY },
                                { text: c('Billing cycle option').t`Annually SAVE 20%`, value: YEARLY },
                                { text: c('Billing cycle option').t`Two-year SAVE 33%`, value: TWO_YEARS }
                            ]}
                        />
                    </Field>
                    <Field className="auto">
                        <CurrencySelector currency={model.currency} onSelect={onChangeCurrency} />
                    </Field>
                </div>
            </Row>
            <div className="flex flex-nowrap">
                {plans.map((plan) => (
                    <PlanCard
{'fraction_non_alphanumeric': 0.12838863587074387, 'fraction_numerical': 0.0032530904359141183, 'mean_word_length': 1.6612810155799191, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6723813', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1184, 'n_words': 269}