import { motion } from 'framer-motion' import Image from 'next/image' import Link from 'next/link' import { useBreakpoint } from 'common/hooks/useBreakpoint' import { UserData } from '../hooks/use-conf-data' interface Props { loadedUsers: UserData[] isLoading: boolean pageCount: number offset: number } export default function TicketsGrid({ loadedUsers, isLoading, pageCount, offset }: Props) { const STORAGE_URL = 'https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lwx' const BUCKET_FOLDER_VERSION = 'v1' const getTicketImageUrl = (username: string, isGold: boolean) => `${STORAGE_URL}/tickets/${ isGold ? 'golden' : 'regular' }/${BUCKET_FOLDER_VERSION}/${username}.png` const isMobile = useBreakpoint(1024) const isTablet = useBreakpoint(1280) const horizontalOffset = isMobile ? 8 : 20 return (