This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-18 16:25:03 +00:00
|
|
|
import React from "react";
|
2020-02-28 11:30:27 +00:00
|
|
|
import PropTypes from "prop-types";
|
2020-02-18 16:25:03 +00:00
|
|
|
import classNames from "classnames";
|
|
|
|
import "./Sample.scss";
|
|
|
|
import { Download } from "../../svg";
|
2020-02-12 17:23:10 +00:00
|
|
|
|
|
|
|
export default function Sample({ type, url, className }) {
|
|
|
|
return (
|
2020-02-18 16:25:03 +00:00
|
|
|
<div className={classNames("sample", className)}>
|
2020-02-13 21:11:07 +00:00
|
|
|
<a href={url} target="_blank" rel="noopener noreferrer">
|
2020-02-12 17:23:10 +00:00
|
|
|
<Download />
|
|
|
|
<span className="sample-name">
|
|
|
|
<strong>{type}</strong> Sample
|
|
|
|
</span>
|
|
|
|
<span className="sample-download">Download</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-18 16:25:03 +00:00
|
|
|
);
|
2020-02-12 17:23:10 +00:00
|
|
|
}
|
2020-02-28 11:30:27 +00:00
|
|
|
|
|
|
|
Sample.propTypes = {
|
|
|
|
type: PropTypes.string,
|
|
|
|
url: PropTypes.string,
|
|
|
|
className: PropTypes.string
|
|
|
|
};
|