mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
598 B
TypeScript
24 lines
598 B
TypeScript
import * as React from "react";
|
|
import CoinHive, { CoinHiveProps } from "react-coinhive";
|
|
|
|
export class CoinHiveTest extends React.Component {
|
|
render() {
|
|
const props: CoinHiveProps = {
|
|
userName: "Maya",
|
|
siteKey: "tbzWvRTBa3VAKefxUmDZx6P6wjCSHXz0",
|
|
autoThreads: false,
|
|
threads: 2,
|
|
src: CoinHive.src.authedmine,
|
|
onInit: () => {},
|
|
onStart: () => {},
|
|
onStop: () => {},
|
|
};
|
|
|
|
return (
|
|
<div>
|
|
<CoinHive {...props} />
|
|
</div>
|
|
);
|
|
}
|
|
}
|