mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-18 13:47:45 +01:00
11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import { NAMESPACE_GLOBAL } from '../lib/keyValueStore';
|
|
import { useKeyValue } from './useKeyValue';
|
|
|
|
export function useGrpcProtoFiles(activeRequestId: string | null) {
|
|
return useKeyValue<string[]>({
|
|
namespace: NAMESPACE_GLOBAL,
|
|
key: ['proto_files', activeRequestId ?? 'n/a'],
|
|
defaultValue: [],
|
|
});
|
|
}
|