otterscan/src/transaction/decoder/BooleanDecoder.tsx

14 lines
278 B
TypeScript
Raw Normal View History

2021-09-25 20:28:49 +00:00
import React from "react";
type BooleanDecoderProps = {
r: any;
};
const BooleanDecoder: React.FC<BooleanDecoderProps> = ({ r }) => (
<span className={`${r ? "text-green-700" : "text-red-700"}`}>
{r.toString()}
</span>
);
export default React.memo(BooleanDecoder);