Newer
Older
CrypticOreWallet / src / pages / wallets / info / BooleanText.tsx
@Drew Lemmy Drew Lemmy on 8 Mar 2021 556 bytes feat: wallet info modal
// Copyright (c) 2020-2021 Drew Lemmy
// This file is part of KristWeb 2 under GPL-3.0.
// Full details: https://github.com/tmpim/KristWeb2/blob/master/LICENSE.txt
import React from "react";
import { Typography } from "antd";

import { useTranslation } from "react-i18next";

const { Text } = Typography;

export function BooleanText({ value }: { value?: boolean }): JSX.Element {
  const { t } = useTranslation();

  return value
    ? <Text type="success">{t("myWallets.info.true")}</Text>
    : <Text type="danger">{t("myWallets.info.false")}</Text>;
}