import { ApiError } from '@/lib/gateways/api/base/ApiError'; import { useMutation, UseMutationOptions } from '@tanstack/react-query'; interface LeaveTeamParams { teamId: string; driverId: string; } export function useLeaveTeam(options?: Omit, 'mutationFn'>) { return useMutation({ mutationFn: async (params) => { // Note: Leave team functionality would need to be added to teamService // For now, we'll use a placeholder console.log('Leaving team:', params); alert('Successfully left team'); }, ...options, }); }