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