Newer
Older
CrypticOreWallet / src / shared-components / krist-value / index.tsx
@Drew Lemmy Drew Lemmy on 8 Sep 2020 401 bytes chore: replace type aliases with interfaces
import React from "react";

import "./index.scss";

interface Props {
  value: number;
  long?: boolean;
};

export const KristValue = ({ value, long }: Props): JSX.Element => (
  <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>
);