16 lines
310 B
TypeScript
16 lines
310 B
TypeScript
import * as React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
type OwnProps = {
|
|
name: string;
|
|
picture?: string;
|
|
href: string;
|
|
children?: React.ReactNode;
|
|
};
|
|
|
|
function ClickableCell({ href, children }: OwnProps) {
|
|
return <Link to={href}>{children}</Link>;
|
|
}
|
|
|
|
export default ClickableCell;
|