ui for onboarding
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
645b9ca9d4
commit
97627583ec
21
apps/dashboard/src/app/(onboarding)/skip-onboarding.tsx
Normal file
21
apps/dashboard/src/app/(onboarding)/skip-onboarding.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
'use client';
|
||||
|
||||
import { ChevronLastIcon } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
|
||||
const SkipOnboarding = () => {
|
||||
const pathname = usePathname();
|
||||
if (!pathname.startsWith('/onboarding')) return null;
|
||||
return (
|
||||
<Link
|
||||
href="/"
|
||||
className="flex items-center gap-2 text-sm text-muted-foreground"
|
||||
>
|
||||
Skip onboarding
|
||||
<ChevronLastIcon size={16} />
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
||||
export default SkipOnboarding;
|
||||
Reference in New Issue
Block a user