'use client' import { useBreakpoint } from 'common' import { range } from 'lib/helpers' import type { GoTweetsSection } from 'marketing' import Link from 'next/link' import { topTweets } from 'shared-data/tweets' import { Button, cn } from 'ui' import { TweetCard } from 'ui-patterns/TweetCard' function MobileCarousel() { return (
{topTweets.slice(0, 9).map((tweet: any) => ( ))}
) } function DesktopMarquee() { const isMd = useBreakpoint(1024) const visibleTweets = topTweets.slice(0, isMd ? 12 : 18) return (
{range(0, 3).map((_, idx) => (
{visibleTweets.map((tweet: any, i: number) => ( 12 && 'hidden lg:block' )} > ))}
))}
) } export default function TweetsSection({ section }: { section: GoTweetsSection }) { return (
{(section.title || section.description || section.ctas) && (
{section.title && (

{section.title}

)} {section.description && (

{section.description}

)} {section.ctas && section.ctas.length > 0 && (
{section.ctas.map((cta, i) => ( ))}
)}
)}
) }