import React, { useEffect } from 'react' import { useParams } from 'react-router-dom' import { useSelector, useDispatch } from 'react-redux' import { searchById } from '../redux/searchSlice' import timeSince from '../utils/date' import { useNavigate } from 'react-router-dom' function SearchFeed() { const { id } = useParams() const { searchResults } = useSelector((state) => state.search) const { sidebarExtend } = useSelector((state) => state.category) const dispatch = useDispatch() const pageRoute = useNavigate() var aDay = 24 * 60 * 60 * 1000; useEffect(() => { dispatch(searchById(`search?part=snippet&q=${id}`)) }, [id,dispatch]) return ( <>
pageRoute(`/watch/${e.id?.videoId}`)} className='traking-wider font-normal text-[10px] sm:text-[#0f0f0f] text-[13px] leading-[16px]'>{e.snippet?.description?.slice(0, 124) + "..."}