--- import { Icon } from 'astro-icon/components' import Logo from 'components/Logo.astro' import ToggleTheme from 'components/common/ToggleTheme.astro' import ToggleMenu from 'components/common/ToggleMenu.astro' import Button from 'components/ui/Button.astro' import { getHomePermalink } from 'utils/permalinks' import { trimSlash, getAsset } from 'utils/permalinks' import type { CallToAction } from 'types' const pb = Astro.locals.pb const connected = pb.authStore.isValid interface Link { text?: string href?: string ariaLabel?: string icon?: string } interface ActionLink extends CallToAction {} interface MenuLink extends Link { links?: Array } export interface Props { id?: string links?: Array actions?: Array isSticky?: boolean isDark?: boolean isFullWidth?: boolean showToggleTheme?: boolean showRssFeed?: boolean position?: string } const { id = 'header', links = [], actions = [], isSticky = false, isDark = false, isFullWidth = false, showToggleTheme = false, showRssFeed = false, position = 'center', } = Astro.props const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}` ---
{showToggleTheme && } { showRssFeed && ( ) }
{ !connected && ( )} { connected && ( )}