ui for onboarding

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-11 19:57:52 +02:00
committed by Carl-Gerhard Lindesvärd
parent 645b9ca9d4
commit 97627583ec
14 changed files with 644 additions and 1 deletions

View 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;