spee.ch/client/build/components/DropzoneInstructionsDisplay/index.js

35 lines
1.4 KiB
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
2018-06-09 02:23:11 +02:00
var _FormFeedbackDisplay = _interopRequireDefault(require("@components/FormFeedbackDisplay"));
2018-07-12 02:06:06 +02:00
var _Row = _interopRequireDefault(require("@components/Row"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var DropzoneInstructionsDisplay = function DropzoneInstructionsDisplay(_ref) {
var fileError = _ref.fileError;
return _react.default.createElement("div", {
2018-06-09 02:23:11 +02:00
className: 'dropzone-instructions-display'
2018-07-12 02:06:06 +02:00
}, _react.default.createElement(_Row.default, null, _react.default.createElement("p", {
2018-06-09 02:23:11 +02:00
className: 'text--large'
2018-07-12 02:06:06 +02:00
}, "Drag & drop image or video here to publish")), _react.default.createElement(_Row.default, null, _react.default.createElement("p", {
2018-06-09 02:23:11 +02:00
className: 'text--small'
2018-07-12 02:06:06 +02:00
}, "OR")), fileError ? _react.default.createElement("div", null, _react.default.createElement(_Row.default, null, _react.default.createElement("p", {
2018-06-09 02:23:11 +02:00
className: 'text--large text--underline'
2018-07-12 02:06:06 +02:00
}, "CHOOSE FILE")), _react.default.createElement(_FormFeedbackDisplay.default, {
2018-06-09 02:23:11 +02:00
errorMessage: fileError,
defaultMessage: false
2018-07-12 02:06:06 +02:00
})) : _react.default.createElement("p", {
className: 'text--large text--underline'
}, "CHOOSE FILE"));
};
var _default = DropzoneInstructionsDisplay;
exports.default = _default;