// src/pages/users/StatusBadge.jsx
import React from "react";

const StatusBadge = ({ value, trueText, falseText }) => {
  const isTrue = Boolean(value);
  return (
    <span
      className={`px-2 py-1 text-xs rounded-full font-medium ${
        isTrue
          ? "bg-green-100 text-green-800"
          : "bg-red-100 text-red-800"
      }`}
    >
      {isTrue ? trueText : falseText}
    </span>
  );
};

export default StatusBadge;
