GHHG10's picture
download
raw
554 Bytes
import { useMutation } from "@tanstack/solid-query"
import { useLanguage } from "@/context/language"
import { useSync } from "@/context/sync"
import { showToast } from "@/utils/toast"
export function useMcpToggle() {
const sync = useSync()
const language = useLanguage()
return useMutation(() => ({
mutationFn: sync.mcp.toggle,
onError: (error) =>
showToast({
variant: "error",
title: language.t("common.requestFailed"),
description: error instanceof Error ? error.message : String(error),
}),
}))
}

Xet Storage Details

Size:
554 Bytes
·
Xet hash:
8226294f709056d72334536c8c666fb8e939ab35657be79463cdae201d041f08

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.