{ "version": 3, "sources": ["../../../../src/lib/ui/components/StopFollowing.tsx"], "sourcesContent": ["import { track, useEditor } from '@tldraw/editor'\nimport { useActions } from '../hooks/useActions'\nimport { Button } from './primitives/Button'\n\nexport const StopFollowing = track(function ExitPenMode() {\n\tconst editor = useEditor()\n\tconst actions = useActions()\n\n\tif (!editor.instanceState.followingUserId) {\n\t\treturn null\n\t}\n\n\tconst action = actions['stop-following']\n\n\treturn (\n\t\t action.onSelect('people-menu')}\n\t\t/>\n\t)\n})\n"], "mappings": "AAeE;AAfF,SAAS,OAAO,iBAAiB;AACjC,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AAEhB,MAAM,gBAAgB,MAAM,SAAS,cAAc;AACzD,QAAM,SAAS,UAAU;AACzB,QAAM,UAAU,WAAW;AAE3B,MAAI,CAAC,OAAO,cAAc,iBAAiB;AAC1C,WAAO;AAAA,EACR;AAEA,QAAM,SAAS,QAAQ,gBAAgB;AAEvC,SACC;AAAA,IAAC;AAAA;AAAA,MACA,OAAO,OAAO;AAAA,MACd,UAAU,OAAO;AAAA,MACjB,SAAS,MAAM,OAAO,SAAS,aAAa;AAAA;AAAA,EAC7C;AAEF,CAAC;", "names": [] }