11import React , { ChangeEvent , Dispatch , SetStateAction , useCallback , useEffect , useMemo , useRef , useState } from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import Icon from '@ably/ui/core/Icon' ;
43import { Input } from 'src/components/ui/Input' ;
54import { products } from '../../data/examples' ;
65import Button from '@ably/ui/core/Button' ;
@@ -11,6 +10,7 @@ import { SelectedFilters } from './ExamplesContent';
1110import { useOnClickOutside } from 'src/hooks/use-on-click-outside' ;
1211import { navigate } from 'gatsby' ;
1312import { ProductName } from '@ably/ui/core/ProductTile/data' ;
13+ import { MagnifyingGlassIcon , XMarkIcon } from '@heroicons/react/24/outline' ;
1414
1515// Matches Tailwind's `sm` screen (768px), where the filter switches from the
1616// mobile drawer (with an Apply button) to the inline desktop sidebar. Above
@@ -118,10 +118,9 @@ const ExamplesFilter = ({
118118 return (
119119 < >
120120 < div className = "relative w-full" >
121- < Icon
122- name = "icon-gui-magnifying-glass-outline"
123- size = "16px"
124- additionalCSS = "absolute left-3 top-1/2 -translate-y-1/2 z-10 text-neutral-600 dark:text-neutral-700 pointer-events-none"
121+ < MagnifyingGlassIcon
122+ className = "size-[16px] absolute left-3 top-1/2 -translate-y-1/2 z-10 text-neutral-600 dark:text-neutral-700 pointer-events-none"
123+ aria-hidden
125124 />
126125 < Input
127126 type = "search"
@@ -159,7 +158,7 @@ const ExamplesFilter = ({
159158 < div className = "flex justify-between items-center sm:hidden h-16 px-4 py-2 bg-neutral-000 dark:bg-neutral-1300 border border-neutral-300 dark:border-neutral-1000 rounded-t-2xl sm:rounded-none" >
160159 < p className = "ui-text-p1 font-bold text-neutral-1300 dark:text-neutral-000" > Filters</ p >
161160 < button onClick = { closeFilterMenu } aria-label = "Close filter menu" >
162- < Icon name = "icon-gui-x-mark-outline" size = " 24px" />
161+ < XMarkIcon className = " size-[ 24px]" aria-hidden />
163162 </ button >
164163 </ div >
165164 { filters . map ( ( { key, selected, handleSelect, data } ) => (
0 commit comments