2019-12-05 01:04:48 +01:00
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
|
|
|
//import { LocalizerType } from '../../types/Util';
|
|
|
|
|
|
|
|
export enum SessionButtonTypes {
|
|
|
|
fullGreen = 'fullGreen',
|
|
|
|
white = 'white',
|
|
|
|
green = 'green',
|
2019-12-10 06:56:03 +01:00
|
|
|
secondary = 'secondary',
|
|
|
|
danger = 'danger',
|
2019-12-05 01:04:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
//i18n: LocalizerType;
|
|
|
|
text: string;
|
|
|
|
buttonType: SessionButtonTypes;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SessionButton extends React.PureComponent<Props> {
|
|
|
|
public render() {
|
2019-12-05 06:12:33 +01:00
|
|
|
const { buttonType, text } = this.props;
|
2019-12-05 01:04:48 +01:00
|
|
|
|
|
|
|
return (
|
2019-12-10 06:56:03 +01:00
|
|
|
<div className={classNames('session-button', buttonType)} role="button">
|
2019-12-05 06:12:33 +01:00
|
|
|
{text}
|
|
|
|
</div>
|
2019-12-05 01:04:48 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|