'use client' import React, { useContext } from 'react' import styled from 'styled-components' import { CssVars, SearchContext } from '../context' import { ChannelPill, TrendingSearchPill } from './pills' const Container = styled.div` display: flex; color: white; flex-direction: row; font-family: 'interface'; font-weight: 600; font-size: 14px; -webkit-overflow-scrolling: touch; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; height: var(${CssVars.searchbarHeight}); ` const SuggestionBar = () => { const { trendingSearches, currentChannels } = useContext(SearchContext) return ( {currentChannels.length > 0 ? currentChannels.map((channel) => ) : trendingSearches.map((trendingSearch) => ( ))} ) } SuggestionBar.className = 'giphy-suggestion-bar' export default SuggestionBar