<commit_before>/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

/* Link to purchasing a license */

import { React, useState } from "../../app-framework";
import { PurchaseOneLicense } from "./purchase";
import { Button } from "antd";

export const PurchaseOneLicenseLink: React.FC = () => {
  const [expand, set_expand] = useState<boolean>(false);
  return (
    <div>
      <Button disabled={expand} onClick={() => set_expand(true)}>
        Buy a license...
      </Button>
      {expand && (
        <>
          <br />
          <br />
          <PurchaseOneLicense
            onClose={() => {
              set_expand(false);
            }}
          />
        </>
      )}
    </div>
  );
};<commit_msg>icon to buy license link<commit_after>/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

/* Link to purchasing a license */

import { React, useState } from "../../app-framework";
import { PurchaseOneLicense } from "./purchase";
import { Button } from "antd";
import { Icon, Space } from "../../r_misc";

export const PurchaseOneLicenseLink: React.FC = () => {
  const [expand, set_expand] = useState<boolean>(false);
  return (
    <div>
      <Button disabled={expand} onClick={() => set_expand(true)}>
        <Icon name={"shopping-cart"} />
        <Space /> Buy a license...
      </Button>
      {expand && (
        <>
          <br />
          <br />
          <PurchaseOneLicense
            onClose={() => {
              set_expand(false);
            }}
          />
        </>
      )}
    </div>
  );
};
{'fraction_non_alphanumeric': 0.16288539848749273, 'fraction_numerical': 0.005817335660267597, 'mean_word_length': 1.9965156794425087, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, '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': '2132454', 'n_tokens_mistral': 527, 'n_tokens_neox': 519, 'n_words': 142}