import React, { useState, useEffect, useCallback, useRef } from 'react' import { usePage } from '@inertiajs/react' import axios from 'axios' import PostCard from '../../Components/Feed/PostCard' import PostCardSkeleton from '../../Components/Feed/PostCardSkeleton' /* ── Trending hashtags sidebar ─────────────────────────────────────────────── */ function TrendingHashtagsSidebar({ hashtags }) { if (!hashtags || hashtags.length === 0) return null return (
Search by keywords, hashtags, or phrases
Type at least 2 characters to search posts
Nothing matched “{query}”. Try different keywords or a hashtag.
{meta.total.toLocaleString()} result{meta.total !== 1 ? 's' : ''} for{' '} “{query}”
)} {/* Post cards */} {results.map((post) => (