Files
conve-x/src/components/Navbar.tsx
T

41 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-09-09 20:05:10 -05:00
import { SignedIn, SignedOut, UserButton } from '@clerk/nextjs';
import Link from 'next/link';
export default function Navbar() {
return (
<nav className='flex items-center justify-between p-5 shadow-md'>
2023-09-09 20:10:35 -05:00
<ul className='flex items-center gap-4'>
<li>
2023-09-09 20:36:47 -05:00
<Link href='/'>
conve
<span className='font-bold italic text-4xl text-primary-accent'>
X
</span>
</Link>
2023-09-09 20:10:35 -05:00
</li>
</ul>
2023-09-09 20:05:10 -05:00
<ul className='flex items-center gap-4'>
<SignedIn>
<li>
<UserButton
showName
userProfileMode='navigation'
userProfileUrl='/account'
signInUrl='/login'
afterSignOutUrl='/'
/>
</li>
</SignedIn>
<SignedOut>
<li>
<Link href='/login'>Sign in</Link>
</li>
<li>
<Link href='/signup'>Sign up</Link>
</li>
</SignedOut>
</ul>
</nav>
);
}