import * as React from 'react'; import { Col, Row } from '@zendeskgarden/react-grid'; import H6 from '../../components/typography/H6/H6'; import P from '../../components/typography/P/P'; import Tag, { TagContainer } from '../../components/elements/Tag/Tag'; //TODO get tags from the API const words = `offer segment slave duck instant market degree populate chick dear enemy reply drink occur support shell neck`; // https://stackoverflow.com/a/6274381/2039244 function shuffle(a) { for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; } const words1 = shuffle(words.split('\n')); const words2 = shuffle(words.split('\n')); export default ({ user, goToNextStep, toggleInterest }) => { return ( <>
2. Your Interests

Tell us what you're interested in so we can make your MoodleNet experience tailored to you.

{words2.map(word => ( toggleInterest(word)} > {word} ))}

Popular on MoodleNet

These tags are popular on MoodleNet.

{words1.map(word => ( toggleInterest(word)} > {word} ))}
); };