// SPDX-License-Identifier: GPL-3.0-or-later

import { getStatusBadge } from '../lib/utils';

interface StatusBadgeProps {
  status: string;
  className?: string;
}

export default function StatusBadge({ status, className = '' }: StatusBadgeProps) {
  return (
    <span className={`${getStatusBadge(status)} ${className}`}>
      {status.replace(/_/g, ' ')}
    </span>
  );
}
