import TitleCard from '@app/components/TitleCard'; import { ArrowCircleRightIcon } from '@heroicons/react/solid'; import Link from 'next/link'; import { useState } from 'react'; import { useInView } from 'react-intersection-observer'; import { defineMessages, useIntl } from 'react-intl'; const messages = defineMessages({ seemore: 'See More', }); interface ShowMoreCardProps { url: string; posters: (string | undefined)[]; } const ShowMoreCard = ({ url, posters }: ShowMoreCardProps) => { const intl = useIntl(); const [isHovered, setHovered] = useState(false); const { ref, inView } = useInView({ triggerOnce: true, }); if (!inView) { return (