mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
19 lines
392 B
TypeScript
19 lines
392 B
TypeScript
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%`,
|
|
}}
|
|
/>
|
|
);
|
|
|
|
//
|