16 lines
368 B
Svelte
16 lines
368 B
Svelte
<script lang="ts">
|
|
import cx from "classnames"
|
|
import type {Snippet} from "svelte"
|
|
|
|
interface Props {
|
|
class?: string
|
|
visible?: boolean
|
|
children?: Snippet
|
|
}
|
|
|
|
const {children, visible = false, ...props}: Props = $props()
|
|
</script>
|
|
|
|
<div class={cx("secondary-nav", visible ? "flex" : "hidden md:flex", props.class)}>
|
|
{@render children?.()}
|
|
</div>
|