cosmos-explorer/src/Explorer/Controls/AccountSwitch/AccountSwitchComponentAdapter.tsx
2020-05-25 21:30:55 -05:00

12 lines
444 B
TypeScript

import * as React from "react";
import { ReactAdapter } from "../../../Bindings/ReactBindingHandler";
import { AccountSwitchComponent, AccountSwitchComponentProps } from "./AccountSwitchComponent";
export class AccountSwitchComponentAdapter implements ReactAdapter {
public parameters: ko.Observable<AccountSwitchComponentProps>;
public renderComponent(): JSX.Element {
return <AccountSwitchComponent {...this.parameters()} />;
}
}