The Node.js® Website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 27 lines 755 B view raw
1import type { ComponentProps, FC } from 'react'; 2 3import ProgressionSidebarItem from '@/components/Common/ProgressionSidebar/ProgressionSidebarItem'; 4import type { FormattedMessage } from '@/types'; 5 6import styles from './index.module.css'; 7 8type ProgressionSidebarGroupProps = { 9 groupName: FormattedMessage; 10 items: Array<ComponentProps<typeof ProgressionSidebarItem>>; 11}; 12 13const ProgressionSidebarGroup: FC<ProgressionSidebarGroupProps> = ({ 14 groupName, 15 items, 16}) => ( 17 <section className={styles.group}> 18 {groupName} 19 <div className={styles.items}> 20 {items.map(({ label, link }) => ( 21 <ProgressionSidebarItem key={link} label={label} link={link} /> 22 ))} 23 </div> 24 </section> 25); 26 27export default ProgressionSidebarGroup;