Initial commit
This commit is contained in:
commit
09a1919d36
152 changed files with 22845 additions and 0 deletions
11
src/components/UserComponent.astro
Normal file
11
src/components/UserComponent.astro
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
import { type User } from '../content/config'
|
||||
|
||||
type Props = {
|
||||
user: User
|
||||
}
|
||||
|
||||
const { user } = Astro.props
|
||||
---
|
||||
|
||||
{typeof user === 'string' ? <span>{user}</span> : Object.entries(user).map(([k, v]) => <a href={v} class="text-link underline" target="_blank"><span>{k}</span></a>)[0]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue