mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
16 lines
515 B
JavaScript
16 lines
515 B
JavaScript
import LinkBlock from './LinkBlock';
|
|
|
|
import styles from '../../styles/links.module.scss';
|
|
|
|
export default function Links({ categories, setCategoryActive, refCategoryActive }) {
|
|
return (<div className={styles['links-wrapper']}>
|
|
{categories.map((category, key) => (
|
|
<LinkBlock
|
|
key={key}
|
|
category={category}
|
|
setCategoryActive={setCategoryActive}
|
|
refCategoryActive={refCategoryActive}
|
|
/>
|
|
))}
|
|
</div>);
|
|
} |