Newer
Older
CrypticOreWallet / src / shared-components / krist-value / index.tsx
@Drew Lemmy Drew Lemmy on 8 Aug 2020 405 bytes feat: initial commit
import React from "react";

import "./index.scss";

export type KristValueProps = {
  value: number,
  long?: boolean
};

export const KristValue = ({ value, long }: KristValueProps) =>
  <span className="krist-value">
    <span className="icon-krist"></span>
    <span className="krist-value-amount">{value.toLocaleString()}</span>
    {long && <span className="krist-currency-long">KST</span>}
  </span>