mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
21 lines
508 B
TypeScript
21 lines
508 B
TypeScript
import React, { useEffect } from 'react';
|
|
|
|
import CoverCard from './CoverCard';
|
|
import Heading from './Heading';
|
|
|
|
const RelatedPatterns = ({ patterns }) => {
|
|
return (
|
|
<section>
|
|
<Heading title="Related patterns" />
|
|
|
|
<div className="flex flex-wrap items-start pa4">
|
|
{
|
|
patterns.map(pattern => <CoverCard key={pattern} pattern={pattern} />)
|
|
}
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export default RelatedPatterns;
|