import React from "react" import misago from "misago" const StartSocialAuth = (props) => { const { buttonClassName, buttonLabel, formLabel, header, labelClassName } = props const socialAuth = misago.get("SOCIAL_AUTH") if (socialAuth.length === 0) return null return (
{socialAuth.map(({ id, name, button_text, button_color, url }) => { const className = "btn btn-block btn-default btn-social-" + id const style = button_color ? { color: button_color } : null const finalButtonLabel = button_text || interpolate(buttonLabel, { site: name }, true) return (
{finalButtonLabel}
) })}

) } const FormHeader = ({ className, text }) => { if (!text) return null return
{text}
} export default StartSocialAuth