@steambrew/client
Version:
A support library for creating plugins with Millennium.
6 lines (5 loc) • 441 B
JavaScript
import { CommonUIModule } from '../webpack';
import { createPropListRegex } from '../utils';
const buttonItemRegex = createPropListRegex(['highlightOnFocus', 'childrenContainerWidth'], false);
/** @component React Components */
export const ButtonItem = Object.values(CommonUIModule).find((mod) => (mod?.render?.toString && buttonItemRegex.test(mod.render.toString())) || mod?.render?.toString?.().includes('childrenContainerWidth:"min"'));