85d58298a3
* nextjs with unsplash initial commit * update demo link * remove isomorphic-unfetch * remove ssr on collection page * fix style issues * fix import/no-anonymous-default-export * usign fetch instead of request * remove credits * improve instructions * improve instructions * Updated readme steps and images * Updated readme * Updated gitignore Co-authored-by: Luis Alvarez <luis@vercel.com>
29 lines
685 B
TypeScript
29 lines
685 B
TypeScript
import styles from './Social.module.css'
|
|
import UIcon from 'components/UIcon'
|
|
|
|
const Social = ({ user }) => {
|
|
return (
|
|
<div className={styles.social_container}>
|
|
{user.twitter_username && (
|
|
<UIcon
|
|
url={'https://www.twitter.com/' + user.twitter_username}
|
|
name="twitter"
|
|
/>
|
|
)}
|
|
{user.instagram_username && (
|
|
<UIcon
|
|
url={'https://www.instagram.com/' + user.instagram_username}
|
|
name="instagram"
|
|
/>
|
|
)}
|
|
{user.username && (
|
|
<UIcon
|
|
url={'https://www.unsplash.com/@' + user.username}
|
|
name="unsplash"
|
|
/>
|
|
)}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Social
|