import React from 'react'
import PropTypes from 'prop-types'
import { motion, useReducedMotion } from 'framer-motion'
import { moveInBottom, getAnimationProps } from '../atoms/Transitions'
import Icon from '../atoms/Icon'
import { useResume } from '../../hooks/use-resume'
import {
link,
title,
small as styleSmall,
networks
} from './Networks.module.css'
const linkClasses = (key) =>
key === 'Mail' ? `u-email ${link}` : `u-url ${link}`
const NetworkLink = ({ name, url }) => (
{name}
)
NetworkLink.propTypes = {
name: PropTypes.string.isRequired,
url: PropTypes.string.isRequired
}
export default function Networks({ small, hide }) {
const { basics } = useResume()
const shouldReduceMotion = useReducedMotion()
const isSSr = typeof window === 'undefined'
if (hide) return null
return (
{basics.profiles.map((profile) => (
))}
)
}
Networks.propTypes = {
small: PropTypes.bool,
hide: PropTypes.bool
}