'use client'

import { useEffect } from 'react'
import { syncActiveSprintCookieAction } from '@/actions/active-sprint'

interface Props {
  productId: string
  sprintId: string
}

export function SyncActiveSprintCookie({ productId, sprintId }: Props) {
  useEffect(() => {
    syncActiveSprintCookieAction(productId, sprintId)
  }, [productId, sprintId])
  // No data-debug-id: this component renders null (side-effect only).
  return null
}
