mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 20:07:49 +08:00
26 lines
694 B
JavaScript
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;
|