Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jitsi-meet/react/features/calendar-sync/components/JoinButton.web.js

57 lines
1.2 KiB

// @flow
import Button from '@atlaskit/button';
import React, { Component } from 'react';
import Tooltip from '@atlaskit/tooltip';
import { translate } from '../../base/i18n';
/**
* The type of the React {@code Component} props of {@link JoinButton}.
*/
type Props = {
/**
* The function called when the button is pressed.
*/
onPress: Function,
/**
* Invoked to obtain translated strings.
*/
t: Function
};
/**
* A React Component for joining an existing calendar meeting.
*
* @extends Component
*/
class JoinButton extends Component<Props> {
/**
* Implements React's {@link Component#render}.
*
* @inheritdoc
*/
render() {
const { onPress, t } = this.props;
return (
<Tooltip
content = { t('calendarSync.joinTooltip') }>
<Button
appearance = 'primary'
className = 'join-button'
onClick = { onPress }
type = 'button'>
{ t('calendarSync.join') }
</Button>
</Tooltip>
);
}
}
export default translate(JoinButton);