/* jshint ignore:start */
import React from 'react'
import misago from 'misago'
const StartSocialAuth = (props) => {
const {
buttonClassName,
buttonLabel,
formLabel,
header,
labelClassName,
} = props;
const socialAuth = misago.get('SETTINGS').SOCIAL_AUTH;
if (socialAuth.length === 0) return null;
return (
{socialAuth.map(({ id, name, url }) => {
const className = 'btn btn-block btn-default btn-social-' + id;
const finalButtonLabel = interpolate(buttonLabel, { site: name }, true);
return (
);
})}
)
}
const FormHeader = ({ className, text }) => {
if (!text) return null;
return (
{text}
);
}
export default StartSocialAuth