fix: remove unused user-menu
This commit is contained in:
parent
d283d44c02
commit
f2c71a0f9d
1 changed files with 0 additions and 24 deletions
|
|
@ -1,24 +0,0 @@
|
|||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { type Session } from '@auth/nextjs/types'
|
||||
|
||||
import { LoginButton } from '@/components/login-button'
|
||||
|
||||
export interface UserMenuProps {
|
||||
session?: Session
|
||||
}
|
||||
|
||||
export function UserMenu({ session }: UserMenuProps) {
|
||||
if (!session?.user) {
|
||||
return (
|
||||
<LoginButton variant="ghost" className="[&_svg]:hidden" text="Login" />
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<p className="px-2 text-sm font-medium truncate w-[100px] sm:w-auto">
|
||||
{session.user.name}
|
||||
</p>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue