QueueRow.jsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ./src/stories/QueueRow.jsx
  2. import React from 'react';
  3. import {Link} from "./Link";
  4. /**
  5. * A queue as described in a list.
  6. */
  7. const QueueRow = ({
  8. arn = undefined,
  9. itemCount = undefined,
  10. qName = undefined,
  11. url = undefined,
  12. index = undefined,
  13. ...props
  14. }) => {
  15. if (arn === undefined || arn == null) {
  16. arn = '';
  17. }
  18. if (itemCount === undefined || itemCount === null || itemCount === '') {
  19. itemCount = '-';
  20. }
  21. return (
  22. <>
  23. <tr className="bg-white border-b transition duration-300 ease-in-out hover:bg-gray-100">
  24. <td className="px-6 py-4 whitespace-nowrap text-sm font-extralight text-gray-900">{index}</td>
  25. <td className="text-sm text-gray-900x font-light px-6 py-4 url"><Link text={qName} url={url} /></td>
  26. <td className="text-sm text-gray-900 font-light px-6 py-4">{arn}</td>
  27. <td className="text-sm text-gray-900 font-light px-6 py-4">{itemCount}</td>
  28. <td><button>Detail</button></td>
  29. </tr>
  30. <React.StrictMode/>
  31. </>
  32. )
  33. }
  34. export {
  35. QueueRow,
  36. }