# code-snippets/trunk/js/components/InsightsMenu/InsightsMenu.tsx

Code Snippets, version trunk. 25 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/trunk/code/js/components/InsightsMenu/InsightsMenu.tsx
- Raw: https://pluginprobe.com/plugins/code-snippets/trunk/raw/js/components/InsightsMenu/InsightsMenu.tsx
- Modified: 2026-09-22T07:42:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-snippets/trunk/code/js/components/InsightsMenu/InsightsMenu.tsx#L10-L20`.

```tsx
import React from 'react'
import { WithRestAPIContext } from '../../hooks/useRestAPI'
import { ScreenMetaSlot } from '../common/ScreenMetaSlot'
import { Toolbar } from '../common/Toolbar'
import { InsightsDashboard } from './InsightsDashboard'

export const InsightsMenu: React.FC = () => {
	const summary = window.CODE_SNIPPETS_INSIGHTS

	return (
		<>
			<Toolbar />

			<ScreenMetaSlot />

			{summary && (
				<div className="code-snippets-insights">
					<WithRestAPIContext>
						<InsightsDashboard summary={summary} />
					</WithRestAPIContext>
				</div>)}
		</>
	)
}

```
