mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-31 23:17:10 +02:00
18 lines
539 B
TypeScript
18 lines
539 B
TypeScript
|
|
import { findModuleChild } from '../webpack';
|
||
|
|
import { FC } from 'react';
|
||
|
|
|
||
|
|
export interface ControlsListProps {
|
||
|
|
alignItems?: 'left' | 'right' | 'center';
|
||
|
|
spacing?: 'standard' | 'extra';
|
||
|
|
}
|
||
|
|
|
||
|
|
export const ControlsList: FC<ControlsListProps> = findModuleChild((m) => {
|
||
|
|
if (typeof m !== 'object') return;
|
||
|
|
for (const prop in m) {
|
||
|
|
if (m[prop]?.toString && m[prop].toString().includes('().ControlsListChild') && m[prop].toString().includes('().ControlsListOuterPanel')) {
|
||
|
|
return m[prop];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return;
|
||
|
|
});
|