Files
twenty/front/src/components/table/CellLink.tsx
2023-04-19 12:20:19 +02:00

20 lines
380 B
TypeScript

import * as React from 'react';
import { Link } from 'react-router-dom';
import CompanyChip from '../chips/CompanyChip';
type OwnProps = {
name: string;
picture?: string;
href: string;
};
function CellLink({ name, picture, href }: OwnProps) {
return (
<Link to={href}>
<CompanyChip name={name} picture={picture} />
</Link>
);
}
export default CellLink;