UNPKG

@brizy/ui

Version:
9 lines (8 loc) 737 B
import React from "react"; import { classNames } from "../../classNamesFn"; import { BRZ_PREFIX } from "../../constants"; export const FacebookEmbeddedVideo = ({ appID, lang, width, showText, allowFullScreen, autoPlay, showCaptions, href, className, }) => { const _className = classNames(className)("fb", "fb-embed", "fb-styles"); return (React.createElement("div", { className: _className }, React.createElement("div", Object.assign({ className: `${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 } : {}))))); };