'use client' import { AnchorHTMLAttributes, forwardRef, ReactNode, Ref } from 'react' import { PktIcon } from '../icon/Icon' export interface IPktBackLink extends Omit, 'href'> { href?: string text?: string ariaLabel?: string renderLink?: (args: { href: string className: string children: ReactNode props: AnchorHTMLAttributes }) => ReactNode ref?: Ref } export const PktBackLink = forwardRef( ({ href = '/', text = 'Forsiden', ariaLabel, renderLink, className, ...props }, ref) => { const linkChildren = ( <>