mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-24 03:48:48 +02:00
17 lines
410 B
TypeScript
17 lines
410 B
TypeScript
|
|
import { FC } from 'react';
|
||
|
|
|
||
|
|
import { CommonUIModule } from '../webpack';
|
||
|
|
|
||
|
|
interface ButtonProps {
|
||
|
|
label?: string;
|
||
|
|
description?: string;
|
||
|
|
layout?: 'below';
|
||
|
|
onClick?(e: MouseEvent): void;
|
||
|
|
disabled?: boolean;
|
||
|
|
bottomSeparator?: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const Button = Object.values(CommonUIModule).find((mod: any) =>
|
||
|
|
mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
|
||
|
|
) as FC<ButtonProps>;
|