mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-21 02:19:12 +02:00
17 lines
528 B
TypeScript
17 lines
528 B
TypeScript
import { FC } from 'react';
|
|
|
|
import { CommonUIModule } from '../webpack';
|
|
import { ItemProps } from './Item';
|
|
|
|
export interface ButtonItemProps extends ItemProps {
|
|
onClick?(e: MouseEvent): void;
|
|
disabled?: boolean;
|
|
}
|
|
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>);
|