22 lines
607 B
JavaScript
Executable file
22 lines
607 B
JavaScript
Executable file
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import '../../styles/media_hint.styl';
|
|
import platform from 'platform';
|
|
import i18n from '../../i18n';
|
|
|
|
const MediaHint = ({video}) => {
|
|
const browser = platform.name.toLowerCase();
|
|
return (
|
|
<div className={classNames('media-hint', browser)}>
|
|
{video ? i18n.Messages.MEDIA_HINT_TITLE : i18n.Messages.AUDIO_HINT_TITLE}
|
|
<small>{video ? i18n.Messages.MEDIA_HINT_BODY : i18n.Messages.AUDIO_HINT_BODY}</small>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default MediaHint;
|
|
|
|
|
|
|
|
// WEBPACK FOOTER //
|
|
// ./discord_app/components/warnings/MediaHint.js
|