MCPcopy Create free account
hub / github.com/TornadoInsight/Sora-FullStack / checkLocalAndLoading

Function checkLocalAndLoading

src/components/LanguageSwitcher.tsx:11–16  ·  view source on GitHub ↗
(langs: string)

Source from the content-addressed store, hash-verified

9export default function LanguageSwitcher({lang = '', page = ''}) {
10 const {showLoadingModal, setShowLoadingModal} = useCommonContext()
11 const checkLocalAndLoading = (langs: string) => {
12 if (lang != langs) {
13 console.log('loading')
14 setShowLoadingModal(true)
15 }
16 }
17 return (
18 <Menu
19 as='div'

Callers 1

LanguageSwitcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected