eduardomoroni/trading-card-manager

View on GitHub
packages/frontend/src/presentation/components/activeFilters/SupertypeFilter.tsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react';
import { Text, View } from 'react-native';
import { styles } from './styles';
import { Supertype } from '../../../domain/entities/Supertype';

interface Props {
  supertype: Supertype;
}

export const SupertypeFilter: React.FC<Props> = (props: Props) => {
  if (!props.supertype) {
    return null;
  }
  return (
    <View style={styles.filtersRow}>
      <Text>Supertype:</Text>
      <Text>{props.supertype}</Text>
    </View>
  );
};