import React from "react";
import "./Badge.css";

const Badge = ({ type, variant = "default", children }) => {
  const badgeClass = `badge badge-${variant}`;
  const content = children || type;

  return <span className={badgeClass}>{content}</span>;
};

export default Badge;

