MCPcopy Create free account
hub / github.com/TanStack/devtools / HeaderLogo

Function HeaderLogo

packages/devtools-ui/src/components/header.tsx:21–46  ·  view source on GitHub ↗
({
  children,
  flavor,
  onClick,
}: {
  children: JSX.Element
  flavor: {
    light: string
    dark: string
  }
  onClick?: JSX.EventHandler<HTMLButtonElement, MouseEvent>
})

Source from the content-addressed store, hash-verified

19 </header>
20 )
21}
22
23export function HeaderLogo({
24 children,
25 flavor,
26 onClick,
27}: {
28 children: JSX.Element
29 flavor: {
30 light: string
31 dark: string
32 }
33 onClick?: JSX.EventHandler<HTMLButtonElement, MouseEvent>
34}) {
35 const styles = createStyles()
36 return (
37 <div class={styles().header.logoAndToggleContainer}>
38 <button
39 data-tsd-control
40 class={clsx(styles().header.logo)}
41 onClick={onClick}
42 >
43 <span class={clsx(styles().header.tanstackLogo)}>TANSTACK</span>
44 <span
45 class={clsx(styles().header.flavorLogo(flavor.light, flavor.dark))}
46 >
47 {children}
48 </span>
49 </button>

Callers

nothing calls this directly

Calls 1

createStylesFunction · 0.90

Tested by

no test coverage detected