(query: string)
| 5 | import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip'; |
| 6 | |
| 7 | function useMediaQuery(query: string) { |
| 8 | const [matches, setMatches] = React.useState(false); |
| 9 | React.useEffect(() => { |
| 10 | const media = window.matchMedia(query); |
| 11 | setMatches(media.matches); |
| 12 | }, [query]); |
| 13 | return matches; |
| 14 | } |
| 15 | |
| 16 | const Slider = ({ |
| 17 | ref, |
no outgoing calls
no test coverage detected