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!]) { 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 "{inputValue}”
) : (You have no categories to display
)}