import React from 'react';
import { STagContainer } from '../s-components/s-tag-container';
import { STagLabel } from '../s-components/s-tag-label';

type TProps = {
  label: string;
};

export const Tag: React.FC<TProps> = ({ label }) => {
  if (!label) return null;

  return (
    <STagContainer>
      <STagLabel>{label}</STagLabel>
    </STagContainer>
  );
};
