24 lines
635 B
JavaScript
24 lines
635 B
JavaScript
import React from 'react';
|
|
import '../css/Listing.css';
|
|
|
|
const Listing = (props) => {
|
|
/**
|
|
* Listing - A subcomponent for making lists of content, mostly to make a list of links.
|
|
*
|
|
*
|
|
* title - The title of the listing
|
|
* children - JSX that is necessary in the content of the component
|
|
*/
|
|
return (
|
|
<div className="listing">
|
|
<a href={props.link}>
|
|
<div className="title">{props.title}</div>
|
|
<div className="content">
|
|
{props.children}
|
|
</div>
|
|
</a>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Listing; |