cursor: hint for stickers

This commit is contained in:
muerwre 2018-12-07 14:00:07 +07:00
parent 45fd758c1d
commit d248b679ed
9 changed files with 80 additions and 24 deletions

View file

@ -0,0 +1,19 @@
import React from 'react';
import { STICKERS } from '$constants/stickers';
type Props = {
set: String,
sticker: String,
};
export const StickerIcon = ({ set, sticker }: Props) => (
<div
className="cursor-icon-sticker"
style={{
backgroundImage: `url(${STICKERS[set].url}`,
backgroundPosition: `-${STICKERS[set].layers[sticker].off * 100}% 50%`,
}}
/>
);
//