hyper-tuner/hyper-tuner-cloud

View on GitHub
src/components/TuneTag.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Tag } from 'antd';
import { TunesTagsOptions } from '../@types/pocketbase-types';

const TuneTag = ({ tag }: { tag: TunesTagsOptions | undefined }) => {
  return tag ? (
    <Tag color={tag === TunesTagsOptions['base map'] ? 'green' : 'red'}>{tag}</Tag>
  ) : null;
};

export default TuneTag;