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/base/react/components/web/Button.js

41 lines
833 B

/* @flow */
import Button from '@atlaskit/button';
import React, { Component } from 'react';
type Props = {
/**
* React Elements to display within the component.
*/
children: React$Node | Object,
/**
* Handler called when the user presses the button.
*/
onValueChange: Function
};
/**
* Renders a button.
*/
export default class ButtonImpl extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
const { onValueChange } = this.props;
return (
<Button
appearance = 'primary'
onClick = { onValueChange }
type = 'button'>
{ this.props.children }
</Button>
);
}
}