import React from "react"; import { useDispatch } from "react-redux"; import { push } from "react-router-redux"; import Button from "components/buttons/Button/Button"; interface ILinkCellProps { value: string; path: string; title?: string; } const LinkCell = (props: ILinkCellProps): JSX.Element => { const { value, path, title } = props; const dispatch = useDispatch(); const onClick = (): void => { dispatch(push(path)); }; return ( ); }; export default LinkCell;