2021-06-11 09:05:49 +02:00
|
|
|
<script>
|
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
|
|
|
const { builderStore } = getContext("sdk")
|
|
|
|
const component = getContext("component")
|
|
|
|
|
|
|
|
export let text = $component.name || "Placeholder"
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if $builderStore.inBuilder}
|
|
|
|
<div>
|
|
|
|
{text}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
2021-06-11 09:45:58 +02:00
|
|
|
color: var(--grey-6);
|
|
|
|
font-size: var(--font-size-s);
|
2021-06-11 09:05:49 +02:00
|
|
|
}
|
|
|
|
</style>
|