/**
* SourceBadge — displays the source of a catalog item.
*/
import { Badge } from '@renderer/components/ui/badge';
interface SourceBadgeProps {
source: 'official' | 'glama' | string;
}
export const SourceBadge = ({ source }: SourceBadgeProps): React.JSX.Element => {
if (source === 'official') {
return (
Official
);
}
if (source === 'glama') {
return (
Glama
);
}
return (
Community
);
};