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

Callers

nothing calls this directly

Calls 1

createStylesFunction · 0.90

Tested by

no test coverage detected