'use client';

import {lytsRepository} from '@/features/lyts/repositories/lytsRepository';
import {useResource} from '@/shared/hooks/useResource';
import {useScope} from '@/shared/hooks/useScope';

/** LYT data access. See features/dashboard/hooks/useDashboard for the pattern. */

export function useRewards() {
  return useResource(lytsRepository.rewards(useScope()));
}

export function useRedemptions() {
  return useResource(lytsRepository.redemptions(useScope()));
}

export function useLytsActivity() {
  return useResource(lytsRepository.activity(useScope()));
}
