@steambrew/client
Version:
A support library for creating plugins with Millennium.
15 lines (11 loc) • 393 B
text/typescript
import { FC } from 'react';
import { CommonUIModule } from '../webpack';
export interface ToggleProps {
value: boolean;
disabled?: boolean;
onChange?(checked: boolean): void;
navRef?: any; // TODO figure out what this is
}
export const Toggle = Object.values(CommonUIModule).find((mod: any) =>
mod?.render?.toString()?.includes('.ToggleOff)'),
) as FC<ToggleProps>;