Usage

---
import { DashboardHeader } from '~/components';
---

<DashboardHeader user={Astro.locals.user} />

Props

user
User | null
required

The current user. (User)

children
any

A replacement for the avatar in the header.

Content

To update the title in the header, edit site.name in src/config/site.ts.

import { env } from '~/core/env';

export const site = {
  name: 'StarterKit',
  ...
};

Types

User

import type { User } from '~/core/auth';