import * as React from "react"; import { FacebookProvider, Comments } from "react-facebook"; import { FacebookCommentsProps, PluginProps } from "./types"; import { ComponentTypes } from "../types"; import { V1ObjectWrapper, convertProperties } from "../V1ObjectWrapper"; export const FacebookComments: React.FC = ({ appId = "N/A", href, style, properties, }) => { return (
{/* {appId} */}
); }; const FacebookCommentsPlugin: React.FC = ({ settings }) => { const properties = convertProperties(settings.properties); return ( ); }; export const onComponentRender = (hook, payload, actions) => { if ( hook.id === "webcomponent" && payload.type === ComponentTypes.FACEBOOKCOMMENTS ) { return [FacebookCommentsPlugin]; } }; export default FacebookComments;