otterscan/src/transaction/decoder/BooleanDecoder.tsx
2022-08-08 01:56:24 -03:00

14 lines
280 B
TypeScript

import React from "react";
type BooleanDecoderProps = {
r: any;
};
const BooleanDecoder: React.FC<BooleanDecoderProps> = ({ r }) => (
<span className={`${r ? "text-emerald-700" : "text-red-700"}`}>
{r.toString()}
</span>
);
export default React.memo(BooleanDecoder);