huridocs/uwazi

View on GitHub
app/react/V2/Routes/Settings/IX/components/List.tsx

Summary

Maintainability
A
40 mins
Test Coverage
F
33%
import React from 'react';
import { TableExtractor } from '../types';

const List = ({ items }: { items: TableExtractor[] }) => (
  <ul className="flex flex-wrap gap-8 max-w-md list-disc list-inside">
    {items.map(item => (
      <li key={item._id}>{item.name}</li>
    ))}
  </ul>
);

export { List };