import React from 'react'; import useIsBrowser from '@docusaurus/useIsBrowser'; import ShowcaseRow from './ShowcaseRow'; /** * Pure‑UI mock of the in‑app Window/Level menu. * Clickable, but all actions are inert. */ export default function AllinOneMenuShowcase() { const isBrowser = useIsBrowser(); if (!isBrowser) { return null; } const { default: AllInOneMenu, IconMenu, SubMenu, ItemPanel, Item, DividerItem, HorizontalDirection, VerticalDirection, } = require('../../../../ui-next/src/components/AllInOneMenu'); const { Switch } = require('../../../../ui-next/src/components/Switch'); const renderColorLUTItems = () => [ 'Grayscale', 'X Ray', 'HSV', 'Hot Iron', 'Red Hot', 'S PET', 'Perfusion', 'Rainbow', 'SUV', 'GE 256', 'GE', 'Siemens', ].map(name => ); const renderWindowPresetItems = () => [ { desc: 'Soft tissue', wl: '400 / 40' }, { desc: 'Lung', wl: '1500 / -600' }, { desc: 'Liver', wl: '150 / 90' }, { desc: 'Bone', wl: '2500 / 480' }, { desc: 'Brain', wl: '80 / 40' }, ].map(p => ( )); return ( …`} >
} useIconSpace={false} /> } /> {renderColorLUTItems()} {renderWindowPresetItems()} Click the icon to explore an example
); }