session-desktop/ts/components/session/SessionButton.tsx

31 lines
626 B
TypeScript
Raw Normal View History

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',
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 (
<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
);
}
}