File size: 400 Bytes
630cbf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(props, cc, { onMount, el }) => {
  onMount(() => {
    el.addEventListener('click', () => {
      cc.dispatch({
        tab: props.tab,
        component_tab: props['component-tab'],
      });
    });
  });
  const children = props.children[0].value;
  el.innerHTML = `${children}`;
  el.style.display = 'inline-block';
  el.style.cursor = 'pointer';
  el.style.color = 'var(--link-text-color)';
};