mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-20 10:00:08 +02:00
14 lines
392 B
TypeScript
14 lines
392 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 = Object.values(CommonUIModule).find((mod: any) =>
|
|
mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
|
) as FC<ButtonItemProps>;
|