5 lines
274 B
TypeScript
5 lines
274 B
TypeScript
import { ref } from 'vue'
|
|
export function useCachedResource(options: { key: string }) {
|
|
return { data: ref(options.key === 'lnd.channels' ? { channels: [], total_inbound: 0, total_outbound: 0 } : []), loadState: ref('ready'), error: ref(null), refresh: async () => {} }
|
|
}
|