UNPKG

@codedoc/core

Version:

Create beautiful modern documentation websites.

15 lines 683 B
import { transport } from '@connectv/sdh/transport'; import { GitterStyle } from './style'; import { initGitter, gitterState } from './init'; export function GitterToggle(options, renderer) { initGitter(options.room); const classes = this.theme.classes(GitterStyle); return renderer.create("a", { class: `${classes.toggle} ${options.icon ? 'icon-font' : ''}`, onclick: () => { const state = gitterState(); if (state) state.value = !state.value; } }, options.label || 'Community'); } export const GitterToggle$ = /*#__PURE__*/ transport(GitterToggle); export { GitterStyle } from './style'; //# sourceMappingURL=index.js.map