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 { _ } from '@evershop/evershop/lib/locale/translate/_'; 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 "${query}"', { query: inputValue })}
) : ({_('You have no collections to display')}
)}