'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])
  return null
}
