MCPcopy
hub / github.com/supermemoryai/supermemory / DisconnectButton

Function DisconnectButton

apps/web/components/integrations-view.tsx:974–996  ·  view source on GitHub ↗
({ onConfirm }: { onConfirm: () => void })

Source from the content-addressed store, hash-verified

972}
973
974function DisconnectButton({ onConfirm }: { onConfirm: () => void }) {
975 const [confirming, setConfirming] = useState(false)
976 useEffect(() => {
977 if (!confirming) return
978 const t = setTimeout(() => setConfirming(false), 3000)
979 return () => clearTimeout(t)
980 }, [confirming])
981 return (
982 <button
983 type="button"
984 onClick={() => (confirming ? onConfirm() : setConfirming(true))}
985 className={cn(
986 dmSans125ClassName(),
987 "shrink-0 rounded-md px-2 py-1 text-[11px] font-medium transition-colors",
988 confirming
989 ? "bg-red-500/15 text-red-400"
990 : "text-[#737373] hover:bg-white/5 hover:text-red-400",
991 )}
992 >
993 {confirming ? "Confirm" : "Disconnect"}
994 </button>
995 )
996}
997
998function ActiveButton({
999 count,

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
dmSans125ClassNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…