Files
oms-website-nextjs/app/(website)/vacancies/_components/Badge.tsx
2025-04-27 08:51:09 +02:00

13 lines
355 B
TypeScript

export const Badge = ({
children,
icon: Icon,
}: {
children: React.ReactNode;
icon?: React.ElementType;
}) => (
<span className="inline-flex items-center gap-1 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-200 font-poppins">
{Icon && <Icon className="h-3 w-3" />}
{children}
</span>
);