buttonLineComponent.tsx 514 B

123456789101112131415161718192021
  1. import * as React from "react";
  2. export interface IButtonLineComponentProps {
  3. label: string;
  4. onClick: () => void;
  5. }
  6. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  7. constructor(props: IButtonLineComponentProps) {
  8. super(props);
  9. }
  10. render() {
  11. return (
  12. <div className="buttonLine">
  13. <button onClick={() => this.props.onClick()}>{this.props.label}</button>
  14. </div>
  15. );
  16. }
  17. }