2022-10-24 20:33:40 -04:00
|
|
|
import { ElementType, FC, ReactNode } from 'react';
|
|
|
|
|
|
|
|
|
|
import { findModuleChild } from '../webpack';
|
2022-09-18 14:51:50 -04:00
|
|
|
|
|
|
|
|
export interface FocusRingProps {
|
2022-10-24 20:33:40 -04:00
|
|
|
className?: string;
|
|
|
|
|
rootClassName?: string;
|
|
|
|
|
render?: ElementType;
|
|
|
|
|
children?: ReactNode;
|
|
|
|
|
NavigationManager?: any;
|
2022-09-18 14:51:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const FocusRing = findModuleChild((m: any) => {
|
2022-10-24 20:33:40 -04:00
|
|
|
if (typeof m !== 'object') return false;
|
|
|
|
|
for (let prop in m) {
|
|
|
|
|
if (m[prop]?.toString()?.includes('.GetShowDebugFocusRing())')) return m[prop];
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}) as FC<FocusRingProps>;
|