import { useSyncExternalStore } from "react";
import { View, Text } from "react-native";
import { keysStore, type ScopeKeys } from "./store";
export function ShortcutDebug() {
const entries = useSyncExternalStore(
keysStore.subscribe,
keysStore.getSnapshot,
);
return (
Scopes:
{entries.map(([scope, keys]) => (
))}
);
}
function ScopeView({ scope, keys }: { scope: string; keys: ScopeKeys }) {
return (
{scope}:
{keys
.entries()
.map(([key, _]) => key)
.toArray()
.join(",")}
);
}