PlaylistTable.tsx 740 B

12345678910111213141516171819202122232425
  1. import React, { FC } from 'react';
  2. import { PlaylistTableRows } from './PlaylistTableRows';
  3. import { PlaylistItem } from './types';
  4. interface PlaylistTableProps {
  5. items: PlaylistItem[];
  6. onMoveUp: (item: PlaylistItem) => void;
  7. onMoveDown: (item: PlaylistItem) => void;
  8. onDelete: (item: PlaylistItem) => void;
  9. }
  10. export const PlaylistTable: FC<PlaylistTableProps> = ({ items, onMoveUp, onMoveDown, onDelete }) => {
  11. return (
  12. <div className="gf-form-group">
  13. <h3 className="page-headering">Dashboards</h3>
  14. <table className="filter-table">
  15. <tbody>
  16. <PlaylistTableRows items={items} onMoveUp={onMoveUp} onMoveDown={onMoveDown} onDelete={onDelete} />
  17. </tbody>
  18. </table>
  19. </div>
  20. );
  21. };