Group up existing components into elements
This commit is contained in:
7
elements/Avatar/CustomAvatar.pixy
Normal file
7
elements/Avatar/CustomAvatar.pixy
Normal file
@ -0,0 +1,7 @@
|
||||
component CustomAvatar(user *arn.User, link string, title string)
|
||||
a.user.tip(href=link, aria-label=title)
|
||||
AvatarNoLink(user)
|
||||
|
||||
if user.IsPro()
|
||||
.user-pro-icon
|
||||
RawIcon("star")
|
Reference in New Issue
Block a user