mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-27 21:26:57 +02:00
15 lines
422 B
TypeScript
15 lines
422 B
TypeScript
|
|
import { ReactNode, VFC } from "react";
|
||
|
|
import { findModuleChild } from "../webpack";
|
||
|
|
|
||
|
|
export interface FocusableProps {
|
||
|
|
children: ReactNode;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const HorizontalFocus = findModuleChild(m => {
|
||
|
|
if (typeof m !== "object") return undefined;
|
||
|
|
for (let prop in m) {
|
||
|
|
if (m[prop]?.toString()?.includes('"children","alignItems","spacing"')) {
|
||
|
|
return m[prop];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}) as VFC<FocusableProps>;
|