SchemaTable.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { HookList } from './HookList'
  2. import Table from '@/components/to-be-cleaned/Table'
  3. interface SchemaTableProps {
  4. schema: string
  5. filterString: string
  6. }
  7. export const SchemaTable = ({ schema, filterString }: SchemaTableProps) => {
  8. return (
  9. <div key={schema}>
  10. <div className="sticky top-0 backdrop-blur-sm backdrop-filter">
  11. <div className="flex items-baseline space-x-1 py-2">
  12. <h5 className="text-foreground-light">schema</h5>
  13. <h4>{schema}</h4>
  14. </div>
  15. </div>
  16. <Table
  17. className="table-fixed"
  18. head={
  19. <>
  20. <Table.th key="name" className="w-[20%]">
  21. <p className="translate-x-[36px]">Name</p>
  22. </Table.th>
  23. <Table.th key="table" className="w-[15%] hidden lg:table-cell">
  24. Table
  25. </Table.th>
  26. <Table.th key="events" className="w-[24%] hidden xl:table-cell">
  27. Events
  28. </Table.th>
  29. <Table.th key="webhook" className="hidden xl:table-cell">
  30. Webhook
  31. </Table.th>
  32. <Table.th key="buttons" className="w-[5%]"></Table.th>
  33. </>
  34. }
  35. body={<HookList filterString={filterString} schema={schema} />}
  36. />
  37. </div>
  38. )
  39. }