UNPKG

@steambrew/client

Version:
6 lines (5 loc) 441 B
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"'));