mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-25 12:28:53 +02:00
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import { FC } from 'react';
|
|
|
|
import { CommonUIModule } from '../webpack';
|
|
|
|
interface ButtonItemProps {
|
|
label?: string;
|
|
description?: string;
|
|
layout?: 'below';
|
|
icon?: JSX.Element;
|
|
onClick?(e: MouseEvent): void;
|
|
disabled?: boolean;
|
|
bottomSeparator?: boolean;
|
|
}
|
|
|
|
export const ButtonItem = Object.values(CommonUIModule).find((mod: any) =>
|
|
mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
|
) as FC<ButtonItemProps>;
|