Files
web2.0-frontend/src/components/Hero/HeroAsideItem/HeroAsideItem.tsx
T
Aarni Halinen 3f5dbfb674 Refactor Hero
2020-07-08 14:05:36 +03:00

22 lines
476 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React from "react";
import "./HeroAsideItem.scss";
import Anchor from "../../Anchor";
interface HeroAsideItemProps {
title: string;
linkText: string;
linkHref: string;
}
const HeroAsideItem: React.FC<HeroAsideItemProps> = ({ title, linkText, linkHref, children }) => (
<div className="hero-aside-item">
<h2>{title}</h2>
<p>{children}</p>
<Anchor to={linkHref}>
<h6>{linkText} </h6>
</Anchor>
</div>
)
export default HeroAsideItem;