MCPcopy
hub / github.com/jamiepine/voicebox / useImportProfile

Function useImportProfile

app/src/lib/hooks/useProfiles.ts:143–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143export function useImportProfile() {
144 const queryClient = useQueryClient();
145
146 return useMutation({
147 mutationFn: (file: File) => apiClient.importProfile(file),
148 onSuccess: () => {
149 queryClient.invalidateQueries({ queryKey: ['profiles'] });
150 },
151 });
152}
153
154export function useUploadAvatar() {
155 const queryClient = useQueryClient();

Callers 1

MainEditorFunction · 0.90

Calls 1

importProfileMethod · 0.80

Tested by

no test coverage detected