List.tsx 775 B

1234567891011121314151617181920212223242526272829303132
  1. import { SchemaSubject } from 'generated-sources';
  2. import React from 'react';
  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. </tr>
  18. </thead>
  19. <tbody>
  20. {schemas.map(({ subject }) => (
  21. <ListItem subject={subject} />
  22. ))}
  23. </tbody>
  24. </table>
  25. </div>
  26. </div>
  27. );
  28. };
  29. export default List;