mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 04:53:10 +00:00
Fecha a navegação inversa para /campanha/territorios com âncoras estáveis compartilhadas entre lista e destino.
12 lines
347 B
TypeScript
12 lines
347 B
TypeScript
import Link from 'next/link'
|
|
|
|
import { buildTerritoryPageHref } from '@/lib/territoryAnchor'
|
|
|
|
export const TerritoryLink = ({ region }: { region: string }) => (
|
|
<Link
|
|
href={buildTerritoryPageHref(region)}
|
|
className="inline-flex min-h-11 items-center text-muted-foreground underline-offset-4 hover:underline"
|
|
>
|
|
{region}
|
|
</Link>
|
|
)
|