/** @jsx h */ import { Component, h } from "https://esm.sh/preact@10.17.1"; import { emitFunc } from "../event-bus.ts"; import { IconButtonClass } from "./components/tw.ts"; import { CloseIcon } from "./icons/close-icon.tsx"; import { DirectMessagePanelUpdate } from "./message-panel.tsx"; export type RightPanelModel = { show: boolean; }; type RightPanelProps = { emit: emitFunc; rightPanelModel: RightPanelModel; }; type RightPanelState = { show: boolean; }; export class RightPanel extends Component { state: RightPanelState = { show: true, }; render() { const { emit, children } = this.props; const { show } = this.state; return (
{children}
); } }