<script lang="ts">
  import Panel from '../elements/Panel.svelte';

  export let data: WidgetMarkdown;
  export let handle: boolean = false;
  export let isPreview: boolean = false;
</script>

<Panel preview={isPreview} invisible={true} {handle}>
  <div class="px-6 py-3">
    <p class="line-clamp-2 break-words font-semibold text-xl -mb-1 min-h-[28px]">{data.content}</p>
  </div>
</Panel>
