All files / src/hooks/mutations usePhotoMutations.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 6/6
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31            2x                 2x                 2x            
// Legacy photo mutations — project_photos table has been removed.
// These hooks are kept as stubs to avoid breaking existing import sites.
import { useMutation } from "@tanstack/react-query";
 
/** @deprecated project_photos table removed — this is a no-op stub */
export function useReorderPhotos(_proId: string, _projectId: string) {
	return useMutation({
		mutationFn: async (_photoIds: number[]) => {
			// No-op: project_photos table removed
		},
	});
}
 
/** @deprecated project_photos table removed — this is a no-op stub */
export function useDeletePhoto(_proId: string, _projectId: string) {
	return useMutation({
		mutationFn: async (_photoId: number) => {
			// No-op: project_photos table removed
		},
	});
}
 
/** @deprecated project_photos table removed — this is a no-op stub */
export function useUploadPhoto(_proId: string, _projectId: string) {
	return useMutation({
		mutationFn: async (_args: { file: File; caption?: string }) => {
			// No-op: project_photos table removed
		},
	});
}