List.tsx 856 B

12345678910111213141516171819202122232425262728293031323334
  1. import React from 'react';
  2. import { SchemaSubject } from 'generated-sources';
  3. import Breadcrumb from '../../common/Breadcrumb/Breadcrumb';
  4. import ListItem from './ListItem';
  5. interface ListProps {
  6. schemas: SchemaSubject[];
  7. }
  8. const List: React.FC<ListProps> = ({ schemas }) => {
  9. return (
  10. <div className="section">
  11. <Breadcrumb>Schema Registry</Breadcrumb>
  12. <div className="box">
  13. <table className="table is-striped is-fullwidth">
  14. <thead>
  15. <tr>
  16. <th>Schema Name</th>
  17. <th>Version</th>
  18. <th>Compatibility</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {schemas.map((subject) => (
  23. <ListItem key={subject.id} subject={subject} />
  24. ))}
  25. </tbody>
  26. </table>
  27. </div>
  28. </div>
  29. );
  30. };
  31. export default List;