@steambrew/client
Version:
A support library for creating plugins with Millennium.
10 lines (9 loc) • 495 B
JavaScript
import { findModuleExport } from '../webpack';
/** @component React Components */
export const DialogCheckbox = findModuleExport((e) => e?.prototype &&
typeof e?.prototype == 'object' &&
'GetPanelElementProps' in e?.prototype &&
'SetChecked' in e?.prototype &&
'Toggle' in e?.prototype &&
// beta || stable as of oct 2 2024
(e?.prototype?.render?.toString?.().includes('="DialogCheckbox"') || (e.contextType && e.prototype?.render?.toString?.().includes('fallback:'))));