UNPKG

@brizy/ui

Version:
9 lines (8 loc) 589 B
import React from "react"; import { classNames } from "../../classNamesFn"; import { BRZ_PREFIX } from "../../constants"; export const FacebookEmbeddedPost = ({ appID, lang, width, showText, 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-post`, "data-appid": appID, "data-width": width, "data-show-text": showText, "data-href": href }, (lang ? { "data-lang": lang } : {}))))); };