Spaces:
Running
Running
File size: 977 Bytes
6c03381 349f22c 6c03381 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 'use client';
import Link from 'next/link';
import { ArrowLeft } from '@phosphor-icons/react';
/**
* Navigation affordance used at the top of tool pages to return to the
* operation hub. Navigation chrome is "liquid-glass" territory — quiet
* unless you reach for it, then it lights up.
*/
interface BackButtonProps {
href?: string;
label?: string;
className?: string;
}
export function BackButton({ href = '/analyze', label = 'Choose a different operation', className = '' }: BackButtonProps) {
return (
<Link
href={href}
className={`group inline-flex items-center gap-1.5 text-sm text-text-muted hover:text-text-primary transition-colors mb-6 w-fit ${className}`}
>
<span className="inline-flex items-center gap-1 rounded-md px-1 py-0.5 -ml-1 transition-colors group-hover:text-accent-cyan">
<ArrowLeft className="w-4 h-4 transition-transform group-hover:-translate-x-0.5" />
</span>
{label}
</Link>
);
}
|