[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
626 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. import React, { FC } from 'react'
  2. import { useTheme } from '../hooks'
  3. import { LevelItem } from '../types'
  4. interface Props {
  5. items: LevelItem[]
  6. }
  7. const Level: FC<Props> = ({ items }) => {
  8. const theme = useTheme()
  9. return (
  10. <nav className="level">
  11. {items.map(item => (
  12. <div key={item.label}>
  13. {item.label && <p className="label" style={{ color: theme.secondary }}>{item.label}</p>}
  14. <p className="content" style={{ color: theme.text }}>{item.content}</p>
  15. </div>
  16. ))}
  17. </nav>
  18. )
  19. }
  20. export default Level