mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-23 19:38:50 +02:00
22 lines
707 B
TypeScript
22 lines
707 B
TypeScript
import { CSSProperties, FC, RefAttributes } from 'react';
|
|
|
|
import { CommonUIModule } from '../webpack';
|
|
import { FooterLegendProps } from './FooterLegend';
|
|
|
|
export interface DialogButtonProps extends RefAttributes<HTMLDivElement>, FooterLegendProps {
|
|
label?: string;
|
|
style?: CSSProperties;
|
|
className?: string;
|
|
noFocusRing?: boolean;
|
|
description?: string;
|
|
layout?: 'below';
|
|
onClick?(e: MouseEvent): void;
|
|
disabled?: boolean;
|
|
bottomSeparator?: boolean;
|
|
}
|
|
|
|
export const DialogButton = Object.values(CommonUIModule).find(
|
|
(mod: any) =>
|
|
mod?.render?.toString()?.includes('Object.assign({type:"button"') &&
|
|
mod?.render?.toString()?.includes('DialogButton'),
|
|
) as FC<DialogButtonProps>; |