mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 09:46:44 +01:00
10 lines
302 B
TypeScript
10 lines
302 B
TypeScript
import { useFastMutation } from './useFastMutation';
|
|
import { invokeCmd } from '../lib/tauri';
|
|
|
|
export function useDuplicateFolder(id: string) {
|
|
return useFastMutation<void, string>({
|
|
mutationKey: ['duplicate_folder', id],
|
|
mutationFn: () => invokeCmd('cmd_duplicate_folder', { id }),
|
|
});
|
|
}
|