@steambrew/client
Version:
A support library for creating plugins with Millennium.
14 lines (10 loc) • 406 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
}
/** @component React Components */
export const Toggle = Object.values(CommonUIModule).find((mod: any) => mod?.render?.toString()?.includes('.ToggleOff)')) as FC<ToggleProps>;