<commit_before>import React from 'react';
import { c } from 'ttag';
import { Href, Icon } from 'react-components';

interface Props {
    onClose: () => void;
}

const BF_DEAL_URL = 'https://protonmail.com/blog/black-friday-2020/';

const DiscountBanner = ({ onClose }: Props) => {
    return (
        <div className="pd-discount-banner bg-primary color-white-dm p0-25 mb1 mr1 w100 onmobile-m0 onmobile-mw100">
            {onClose ? (
                <button type="button" className="right mr0-25" onClick={onClose}>
                    <Icon name="off" size={12} />
                </button>
            ) : null}
            <div className="flex flex-column flex-nowrap flex-items-center aligncenter p1 w100">
                <h3 className="uppercase bold m0">{c('Title').t`Get your own protondrive`}</h3>
                <p className="mt1 mb1 small">
                    {c('Label').t`Up to 50% off on new subscriptions via our Black Friday promotion`}
                </p>
                <Href url={BF_DEAL_URL} className="pm-button--primary pm-button--large mt0-25 mb1">
                    {c('Action').t`Get the deal`}
                </Href>
            </div>
        </div>
    );
};

export default DiscountBanner;
<commit_msg>BF url updated.<commit_after>import React from 'react';
import { c } from 'ttag';
import { Href, Icon } from 'react-components';

interface Props {
    onClose: () => void;
}

const BF_DEAL_URL = 'https://protonmail.com/blackfriday';

const DiscountBanner = ({ onClose }: Props) => {
    return (
        <div className="pd-discount-banner bg-primary color-white-dm p0-25 mb1 mr1 w100 onmobile-m0 onmobile-mw100">
            {onClose ? (
                <button type="button" className="right mr0-25" onClick={onClose}>
                    <Icon name="off" size={12} />
                </button>
            ) : null}
            <div className="flex flex-column flex-nowrap flex-items-center aligncenter p1 w100">
                <h3 className="uppercase bold m0">{c('Title').t`Get your own protondrive`}</h3>
                <p className="mt1 mb1 small">
                    {c('Label').t`Up to 50% off on new subscriptions via our Black Friday promotion`}
                </p>
                <Href url={BF_DEAL_URL} className="pm-button--primary pm-button--large mt0-25 mb1">
                    {c('Action').t`Get the deal`}
                </Href>
            </div>
        </div>
    );
};

export default DiscountBanner;

{'fraction_non_alphanumeric': 0.1395631067961165, 'fraction_numerical': 0.02750809061488673, 'mean_word_length': 2.0455665024630543, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, 'https://': 2, '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': '143855', 'n_tokens_mistral': 806, 'n_tokens_neox': 754, 'n_words': 188}