'use client' import { useRealtimeSync } from '@/hooks/useRealtimeSync' interface RealtimeUpdaterProps { listId?: string pollInterval?: number } /** * Component that enables real-time updates for a page * Just include this component and it will poll for updates */ export default function RealtimeUpdater({ listId, pollInterval = 3000 }: RealtimeUpdaterProps) { useRealtimeSync({ listId, enabled: true, pollInterval, }) return null }