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

Function TabContent

packages/devtools/src/components/tab-content.tsx:7–19  ·  view source on GitHub ↗
(props: { isOpen: boolean })

Source from the content-addressed store, hash-verified

5import { PluginMarketplace } from '../tabs/plugin-marketplace'
6import { PluginWorkspace } from './plugin-workspace'
7import type { JSX } from '@solidjs/web'
8
9export const TabContent = (props: {
10 isOpen: boolean
11 showMarketplace: boolean
12}) => {
13 const { state } = createDevtoolsState()
14 const styles = createStyles()
15 const component = createMemo<
16 ((props: { isOpen: boolean }) => JSX.Element) | null
17 >(() => tabs.find((tab) => tab.id === state().activeTab)?.component || null)
18
19 const showsPlugins = () =>
20 !props.showMarketplace && state().activeTab === 'plugins'
21
22 return (

Callers

nothing calls this directly

Calls 2

createDevtoolsStateFunction · 0.90
createStylesFunction · 0.90

Tested by

no test coverage detected