feat(system): add EmojiHash component

This commit is contained in:
Pavel Prichodko 2022-04-11 20:58:49 +02:00
parent fb6467ace9
commit ece215c183
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# EmojiHash
```tsx
import { EmojiHash } from '@status-im/components'
```

View File

@ -0,0 +1,24 @@
import React from 'react'
import { Base } from './styles'
interface Props {
name?: string
}
const EmojiHash = (props: Props) => {
const { name } = props
console.log(name)
return (
<Base>
🎩🍞🥑🦍🌈📡
<br />
💅🏻🔔👵🅱
</Base>
)
}
export { EmojiHash }
export type { Props as EmojiHashProps }

View File

@ -0,0 +1,2 @@
export type { EmojiHashProps } from './emoji-hash'
export { EmojiHash } from './emoji-hash'

View File

@ -0,0 +1,6 @@
import { styled } from '~/src/styles/config'
export const Base = styled('div', {
position: 'relative',
flexShrink: 0,
})

View File

@ -11,6 +11,7 @@ export {
DialogTrigger,
} from './dialog'
export { DropdownMenu, DropdownMenuTrigger } from './dropdown-menu'
export { EmojiHash } from './emoji-hash'
export { EthAddress } from './eth-address'
export { Flex } from './flex'
export { Grid } from './grid'