MCPcopy
hub / github.com/github/docs / NoQuery

Function NoQuery

components/search/NoQuery.tsx:6–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useTranslation } from 'components/hooks/useTranslation'
5
6export function NoQuery() {
7 const { t } = useTranslation(['search'])
8 const { page } = useMainContext()
9
10 return (
11 <>
12 <Heading as="h1">{page.title}</Heading>
13
14 <Flash variant="danger" sx={{ margin: '2rem' }}>
15 {t('description')}
16 </Flash>
17 </>
18 )
19}

Callers

nothing calls this directly

Calls 2

useTranslationFunction · 0.90
useMainContextFunction · 0.90

Tested by

no test coverage detected