Files
talk/plugins/talk-plugin-auth/client/login/components/External.js
T
2018-02-13 21:17:24 +01:00

26 lines
694 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import styles from './External.css';
import { Slot } from 'plugin-api/beta/client/components';
import { IfSlotIsNotEmpty } from 'plugin-api/beta/client/components';
import { t } from 'plugin-api/beta/client/services';
const External = ({ slot }) => (
<IfSlotIsNotEmpty slot={slot}>
<div>
<div className={styles.external}>
<Slot fill={slot} className={styles.slot} />
</div>
<div className={styles.separator}>
<h1>{t('talk-plugin-auth.login.or')}</h1>
</div>
</div>
</IfSlotIsNotEmpty>
);
External.propTypes = {
slot: PropTypes.string.isRequired,
};
export default External;