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!]) { attributeGroups(filters: $filters) { items { attributeGroupId uuid groupName } total } } `; interface AttributeGroupIdentifier { attributeGroupId?: string | number; uuid?: string; } const AttributeGroupListSkeleton: React.FC = () => { const skeletonItems = Array(5).fill(0); return (
There was an error fetching attribute groups. {error.message}
); } return (No attribute groups found for query "{inputValue} ”
) : (You have no attribute groups to display
)}