File size: 583 Bytes
794cf6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script lang="ts">
  import { editorStore } from '../../stores/editor';
  import Editor from '../Editor.svelte';
  
  function handleChange(event: CustomEvent<string>) {
    editorStore.setContent(event.detail);
  }
</script>

<div class="editor-panel">
  <Editor
    value={$editorStore.content}
    language={$editorStore.language}
    theme={$editorStore.theme}
    on:change={handleChange}
  />
</div>

<style>
  .editor-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(11, 10, 9, 0.4);
    min-width: 0;
  }
</style>