LogsTableEmptyState.tsx 958 B

123456789101112131415161718192021222324252627282930
  1. import { Search } from 'lucide-react'
  2. const EmptyStateRow = () => {
  3. return (
  4. <div className="relative flex h-4 w-32 items-center rounded-sm border border-dashed border-stronger px-2" />
  5. )
  6. }
  7. export function LogsTableEmptyState({
  8. title = 'No results found',
  9. description = 'Try another search or adjust the filters',
  10. }: {
  11. title?: string
  12. description?: string
  13. }) {
  14. return (
  15. <div className="flex scale-100 flex-col items-center justify-center gap-6 text-center opacity-100 h-full">
  16. <div className="flex flex-col gap-1 relative">
  17. <EmptyStateRow />
  18. <EmptyStateRow />
  19. <EmptyStateRow />
  20. <Search size={30} className="absolute right-3 -bottom-2 text-foreground-lighter" />
  21. </div>
  22. <div className="flex flex-col gap-1 px-5">
  23. <h3 className="text-lg text-foreground">{title}</h3>
  24. <p className="text-sm max-w-xs text-foreground-lighter">{description}</p>
  25. </div>
  26. </div>
  27. )
  28. }