The following is an example code snippet:
import { load } from '@inboxsdk/core';
// Add id here
const inboxSDKAppId = '';
const loadInContentScript = async () => {
const sdk = await load(2, inboxSDKAppId, undefined);
sdk.Conversations.registerThreadViewHandler((threadView) => {
const div = document.createElement('div');
div.innerHTML = 'Hello World';
await threadView.addSidebarContentPanel({
el: div,
title: 'Sidebar Title',
// App icon
});
});
};
loadInContentScript();