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!]) { categories(filters: $filters) { items { categoryId uuid name path { name } } total } } `; interface CategoryIdentifier { categoryId?: string | number; uuid?: string; } const CategoryListSkeleton: React.FC = () => { const skeletonItems = Array(5).fill(0); return (
{_('There was an error fetching categories.')} {error.message}
); } return ({_('No categories found for query "${query}"', { query: inputValue })}
) : ({_('You have no categories to display')}
)}