/
githubmirror
/
carbon
Обзор
Документация
Войти
/
githubmirror
/
carbon
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/PhotoCredit.js
29 строк
668 B
Michael Fix
Upgrade next (#1124)
28 окт 2020, 05:04
Не верифицирован
28 окт 2020, 05:04
eb5334b
Код
Авторство
О чём код?
import React from 'react' export default function PhotoCredit({ photographer }) { return ( <div className="photo-credit"> Photo by{' '} <a href={`${photographer.profile_url}?utm_source=carbon&utm_medium=referral`}> {photographer.name} </a> <style jsx> {` .photo-credit { cursor: unset; user-select: none; text-align: left; font-size: 10px; color: #aaa; margin-bottom: -2px; } .photo-credit a { cursor: pointer; text-decoration: underline; } `} </style> </div> ) }