mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 12:15:32 +08:00
29 lines
581 B
TypeScript
29 lines
581 B
TypeScript
import React from 'react'
|
|
import { Image } from 'components/index'
|
|
import { resolve } from 'styled-jsx/css'
|
|
|
|
export const LogoIcon: React.FC<React.ImgHTMLAttributes<any>> = ({ ...props }) => {
|
|
const { className, styles } = resolve`
|
|
.image {
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
`
|
|
return (
|
|
<>
|
|
<Image
|
|
className={className}
|
|
src="/images/logo.png"
|
|
{...props}
|
|
width={24}
|
|
height={24}
|
|
draggable={false}
|
|
title="GO HOME"
|
|
/>
|
|
{styles}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default React.memo(LogoIcon)
|