mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-03 12:30:10 +00:00
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { SITE_NAME, LOGIN_IMG_URL } from 'config';
|
|
|
|
function LoginGraphic(props: any) {
|
|
const [error, setError] = React.useState(false);
|
|
const src = LOGIN_IMG_URL;
|
|
|
|
return error || !src ? null : (
|
|
<div className="signup-image">
|
|
<img alt={__('%SITE_NAME% login image', { SITE_NAME })} src={src} onError={() => setError(true)} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LoginGraphic;
|