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;
|
|
|
|
|
}
|
2023-02-22 21:56:46 -05:00
|
|
|
export const ButtonItem =
|
|
|
|
|
CommonUIModule.ButtonField ||
|
|
|
|
|
(Object.values(CommonUIModule).find(
|
|
|
|
|
(mod: any) =>
|
|
|
|
|
mod?.render?.toString()?.includes('"highlightOnFocus","childrenContainerWidth"') ||
|
|
|
|
|
mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
|
|
|
|
) as FC<ButtonItemProps>);
|