mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(site): rename website to site
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
---
|
||||
import type { SupportedFramework } from '@/types/docs';
|
||||
|
||||
interface Props {
|
||||
frameworks?: SupportedFramework[];
|
||||
}
|
||||
|
||||
const { frameworks } = Astro.props;
|
||||
const { framework } = Astro.params;
|
||||
|
||||
// Only render if current framework matches, or if no frameworks specified (all frameworks)
|
||||
const shouldRender = !frameworks || frameworks.includes(framework as SupportedFramework);
|
||||
---
|
||||
|
||||
{shouldRender && <slot />}
|
||||
Reference in New Issue
Block a user