Skip to content
Source
Sign inSign up
TanStack/table
Open History to see the last commit

plugin.tsx

15 lines471 Bytes

1import { createSolidPlugin } from '@tanstack/devtools-utils/solid'
2import { TableDevtoolsPanel } from './TableDevtools'
3​
4type SolidTableDevtoolsPlugin = ReturnType<
5 ReturnType<typeof createSolidPlugin>[0]
6>
7​
8const plugins = createSolidPlugin({
9 name: 'TanStack Table',
10 Component: TableDevtoolsPanel,
11})
12​
13export const tableDevtoolsPlugin: () => SolidTableDevtoolsPlugin = plugins[0]
14export const tableDevtoolsNoOpPlugin: () => SolidTableDevtoolsPlugin =
15 plugins[1]