cv/src/app/components/Skills.tsx

27 lines
1020 B
TypeScript
Raw Normal View History

2023-05-24 19:15:53 +00:00
import React, { useContext } from 'react';
import Container from 'react-bootstrap/Container';
import { PersonContext } from './PersonContext';
import TagCloud from './TagCloud';
export default function Skills() {
const person = useContext(PersonContext)
return (
<Container className='skills'>
<h2>Skills</h2>
<TagCloud title='Primary' icon='bookmark-star' style='primary' tags={person.skills.primary} />
{person.skills.secondary && (
<TagCloud title='Secondary' icon='bookmark-plus' tags={person.skills.secondary} />
)}
2023-05-26 03:49:37 +00:00
{person.skills.languages && (
<TagCloud title='Languages' icon='bookmarks' tags={person.skills.languages} />
)}
{person.skills.others && (
<TagCloud title='Others' icon='bookmark' tags={person.skills.others} />
)}
{person.interests && (
<TagCloud title='Interests' icon='bookmark-heart' style='light' tags={person.interests} />
)}
2023-05-24 19:15:53 +00:00
</Container>
)
}