UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

18 lines 763 B
import { default as React } from 'react'; import { TypographyProps } from '../../../Typography'; export interface LinkProps extends TypographyProps { link: string; } /** * Render link items. Framework-agnostic: by default renders a plain anchor so * the component works in any host. A Next.js (or other router) consumer can * inject client-side navigation by passing `linkComponent={NextLink}` — it * receives the same `href` prop. Avoids a module-scope `next/link` import, * which reads `process.env.__NEXT_*` at load and throws outside Next. */ declare const useLink: (props: { link?: LinkProps | LinkProps[]; linkComponent?: React.ElementType; }) => React.ReactElement[] | null; export default useLink; //# sourceMappingURL=useLink.d.ts.map