import React, { PropsWithChildren } from 'react'; import { LinkProps } from 'react-router-dom'; export type TdLinkProps = PropsWithChildren>; /** * Makes a table cell into a link. * * It uses a `td-link` class that has styles that are required for it to work * correctly. * * ``` * * * {products.map(p => { * const td = getTdLink('/product/' + p.id) * * return ( * * {td({ chilrden: p.id })} * {td({ chilrden: p.name })} * {td({ chilrden: p.stack })} * * ) * })} * *
* ``` */ export declare function getTdLink(to: LinkProps['to'], tdProps?: React.HTMLProps): ({ children, className, ...otherProps }: TdLinkProps) => React.ReactElement;