import * as React from 'react'; type BackLinkBase = { className?: string; /** Visible text. Default «Atrás». Ignored with `asChild` (the child's text is used). */ label?: React.ReactNode; }; export type BackLinkProps = (BackLinkBase & { asChild: true; children: React.ReactElement; }) | (BackLinkBase & { asChild?: false; } & Omit, 'children'> & { href: string; }) | (BackLinkBase & { asChild?: false; } & Omit, 'children'> & { href?: undefined; }); /** * «‹ Atrás» link with a 44px target. Router-agnostic: * - `` renders an ``. * - `Órdenes` reuses the router link. * - ` history.back()} />` renders a `