huridocs/uwazi

View on GitHub
app/react/V2/Routes/Settings/ParagraphExtraction/components/DisplayPills.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { Pill } from 'app/V2/Components/UI';

const DisplayPills = ({ items = [] }: { items: string[] }) => (
  <>
    {items.map(item => (
      <Pill key={item} color="gray" className="text-gray-900 text-xs font-medium mr-1">
        {item}
      </Pill>
    ))}
  </>
);

export { DisplayPills };