import { SimplePagination } from '@components/common/SimplePagination.js'; import { Button } from '@components/common/ui/Button.js'; import { Input } from '@components/common/ui/Input.js'; import { Skeleton } from '@components/common/ui/Skeleton.js'; import { Check } from 'lucide-react'; import React from 'react'; import { useQuery } from 'urql'; import { AtLeastOne } from '../../types/atLeastOne.js'; const SearchQuery = ` query Query ($filters: [FilterInput!]) { collections(filters: $filters) { items { collectionId uuid name } total } } `; interface CollectionIdentifier { collectionId?: string | number; uuid?: string; } const CollectionListSkeleton: React.FC = () => { const skeletonItems = Array(5).fill(0); return (
There was an error fetching collections. {error.message}
); } return (No collections found for query "{inputValue}”
) : (You have no collections to display
)}