shulkerscript-webpage/src/components/override/ContentPanel.astro

18 lines
402 B
Plaintext
Raw Normal View History

2024-06-20 15:43:14 +02:00
---
import type { Props } from "@astrojs/starlight/props";
import Default from "@astrojs/starlight/components/ContentPanel.astro";
import { isPlaygroundPage } from '@utils/playground';
2024-06-20 15:43:14 +02:00
const isPlayground = isPlaygroundPage(Astro.props.slug, Astro.currentLocale);
2024-06-20 15:43:14 +02:00
---
{
isPlayground ? (
<slot />
) : (
<Default {...Astro.props}>
<slot />
</Default>
)
}