Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
import { computed } from "vue"
import { useSetting } from "~/composables/settings"
/**
* Composable to determine documentation visibility based on experimental flags
*/
export function useDocumentationVisibility() {
const ENABLE_EXPERIMENTAL_DOCUMENTATION = useSetting(
"ENABLE_EXPERIMENTAL_DOCUMENTATION"
)
/**
* Check if documentation should be visible based on experimental flag
*/
const isDocumentationVisible = computed(
() => ENABLE_EXPERIMENTAL_DOCUMENTATION.value
)
return {
isDocumentationVisible,
}
}