2022-05-25 20:26:30 -04:00
|
|
|
import { FC } from 'react';
|
|
|
|
|
|
|
|
|
|
import { CommonUIModule } from '../webpack';
|
2022-06-08 19:24:46 +02:00
|
|
|
import { ItemProps } from './Item';
|
2022-05-25 20:26:30 -04:00
|
|
|
|
2022-06-08 19:24:46 +02:00
|
|
|
export interface ButtonItemProps extends ItemProps {
|
2022-05-25 20:26:30 -04:00
|
|
|
onClick?(e: MouseEvent): void;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const ButtonItem = Object.values(CommonUIModule).find((mod: any) =>
|
2022-08-17 17:24:52 -07:00
|
|
|
mod?.render?.toString()?.includes('"highlightOnFocus","childrenContainerWidth"') || mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
2022-05-25 20:26:30 -04:00
|
|
|
) as FC<ButtonItemProps>;
|