<commit_before>import React from 'react';
import { c } from 'ttag';
import { APPS } from 'proton-shared/lib/constants';
import { PlanIDs, Cycle, Currency, Subscription, Plan } from 'proton-shared/lib/interfaces';
import { isProductPayer } from 'proton-shared/lib/helpers/blackfriday';

import { useModals, useConfig, useCyberMondayPeriod } from '../../hooks';
import { TopNavbarLink, Icon } from '../../components';
import NewSubscriptionModal from '../payments/subscription/NewSubscriptionModal';
import VPNBlackFridayModal from '../payments/subscription/VPNBlackFridayModal';
import MailBlackFridayModal from '../payments/subscription/MailBlackFridayModal';
import { TopNavbarItem } from '../app/TopNavbar';
import { SUBSCRIPTION_STEPS } from '../payments/subscription/constants';

interface Props {
    plans: Plan[];
    subscription: Subscription;
}

const BlackFridayButton = ({ plans, subscription, ...rest }: Props) => {
    const { APP_NAME } = useConfig();
    const { createModal } = useModals();
    const icon = 'blackfriday';
    const cyberModay = useCyberMondayPeriod();
    const text = isProductPayer(subscription)
        ? c('Promo title, need to be short').t`Special offer`
        : cyberModay
        ? 'Cyber Monday'
        : 'Black Friday';

    const onSelect = ({
        planIDs,
        cycle,
        currency,
        couponCode,
    }: {<commit_msg>Hotfix - namespace BF translation<commit_after>import React from 'react';
import { c } from 'ttag';
import { APPS } from 'proton-shared/lib/constants';
import { PlanIDs, Cycle, Currency, Subscription, Plan } from 'proton-shared/lib/interfaces';
import { isProductPayer } from 'proton-shared/lib/helpers/blackfriday';

import { useModals, useConfig, useCyberMondayPeriod } from '../../hooks';
import { TopNavbarLink, Icon } from '../../components';
import NewSubscriptionModal from '../payments/subscription/NewSubscriptionModal';
import VPNBlackFridayModal from '../payments/subscription/VPNBlackFridayModal';
import MailBlackFridayModal from '../payments/subscription/MailBlackFridayModal';
import { TopNavbarItem } from '../app/TopNavbar';
import { SUBSCRIPTION_STEPS } from '../payments/subscription/constants';

interface Props {
    plans: Plan[];
    subscription: Subscription;
}

const BlackFridayButton = ({ plans, subscription, ...rest }: Props) => {
    const { APP_NAME } = useConfig();
    const { createModal } = useModals();
    const icon = 'blackfriday';
    const cyberModay = useCyberMondayPeriod();
    const text = isProductPayer(subscription)
        ? c('blackfriday Promo title, need to be short').t`Special offer`
        : cyberModay
        ? 'Cyber Monday'
        : 'Black Friday';

    const onSelect = ({
        planIDs,
        cycle,
        currency,
        couponCode,
    }: {
{'fraction_non_alphanumeric': 0.12911301859799715, 'fraction_numerical': 0.0, 'mean_word_length': 3.7166947723440136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3954220', 'n_tokens_mistral': 820, 'n_tokens_neox': 814, 'n_words': 204}