mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-21 10:29:00 +02:00
16 lines
485 B
TypeScript
16 lines
485 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('"highlightOnFocus","childrenContainerWidth"') ||
|
|
mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
|
) as FC<ButtonItemProps>;
|