@brizy/ui
Version:
React elements in Brizy style
16 lines (15 loc) • 1.12 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FacebookEmbeddedVideo = void 0;
const react_1 = __importDefault(require("react"));
const classNamesFn_1 = require("../../classNamesFn");
const constants_1 = require("../../constants");
const FacebookEmbeddedVideo = ({ appID, lang, width, showText, allowFullScreen, autoPlay, showCaptions, href, className, }) => {
const _className = (0, classNamesFn_1.classNames)(className)("fb", "fb-embed", "fb-styles");
return (react_1.default.createElement("div", { className: _className },
react_1.default.createElement("div", Object.assign({ className: `${constants_1.BRZ_PREFIX}-facebook fb-video`, "data-appid": appID, "data-href": href, "data-width": width, "data-autoplay": autoPlay, "data-show-text": showText, "data-allowfullscreen": allowFullScreen, "data-show-captions": showCaptions }, (lang ? { "data-lang": lang } : {})))));
};
exports.FacebookEmbeddedVideo = FacebookEmbeddedVideo;