{
dispatch('update', e.detail);
}}
on:code={(e) => {
const { lang, code } = e.detail;
if (
(['html', 'svg'].includes(lang) || (lang === 'xml' && code.includes('svg'))) &&
!$mobile
) {
showArtifacts.set(true);
showControls.set(true);
}
}}
/>
{#if floatingButtons}
{/if}