import Link from 'next/link'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faUser, faBuilding, faLock } from '@fortawesome/free-solid-svg-icons'; const UserAuthForm = props => { const isEnterCodeStage = props.authStage === "enterCode"; const isRegisterForm = props.formType === "register"; const isDeveloperAccount = props.accountType === "developer"; const isDeveloperIcon = {isDeveloperAccount ? : } const lockIcon = return (
{isRegisterForm ?

Rejestracja konta {isDeveloperAccount ? 'programisty' : 'firmy'} do systemu Task-O!

:

Logowanie do systemu Task-O!

}
{isEnterCodeStage && } {!isEnterCodeStage && } {isEnterCodeStage ? : }
) } export default UserAuthForm;