/**
 * Viraly Gutenberg Sidebar Plugin
 *
 * Registers a document settings panel in the block editor that shows
 * connected social channels with per-channel toggles and caption overrides.
 */
import { registerPlugin } from "@wordpress/plugins";
import { PluginDocumentSettingPanel } from "@wordpress/edit-post";
import ViralyEditorPanel from "./ViralyEditorPanel";

registerPlugin("viraly-social-scheduling", {
  render: () => (
    <PluginDocumentSettingPanel
      name="viraly-panel"
      title="Viraly — Social Sharing"
      className="viraly-editor-sidebar"
      icon={<span className="dashicons dashicons-share" style={{ color: "#E03058" }} />}
    >
      <ViralyEditorPanel />
    </PluginDocumentSettingPanel>
  ),
});
