mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:29:45 +00:00
14 lines
330 B
React
Executable File
14 lines
330 B
React
Executable File
import { Link } from 'react-router-dom';
|
|
|
|
function BlockHeading({ heading, link, linkText }) {
|
|
return (
|
|
<div className="heading">
|
|
<h1>{heading}</h1>
|
|
{link && linkText &&
|
|
<Link to={link}>{linkText} →</Link>
|
|
}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default BlockHeading; |