# code-snippets/4.0.0-beta.3/js/components/StatsMenu/StatsMenu.tsx

Code Snippets, version 4.0.0-beta.3. 25 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.3/code/js/components/StatsMenu/StatsMenu.tsx
- Raw: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.3/raw/js/components/StatsMenu/StatsMenu.tsx
- Modified: 2026-10-05T14:06:16+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/4.0.0-beta.3/code/js/components/StatsMenu/StatsMenu.tsx#L10-L20`.

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

export const StatsMenu: React.FC = () => {
	const summary = window.CODE_SNIPPETS_STATS

	return (
		<>
			<Toolbar />

			<ScreenMetaSlot />

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

```
