import styled from "styled-components/macro"; import { Text } from "preact-i18n"; import { EmojiPack } from "../../common/Emoji"; import mutantSVG from "./mutant_emoji.svg"; import notoSVG from "./noto_emoji.svg"; import openmojiSVG from "./openmoji_emoji.svg"; import twemojiSVG from "./twemoji_emoji.svg"; const Container = styled.div` gap: 12px; display: flex; flex-direction: column; .row { gap: 12px; display: flex; > div { flex: 1; display: flex; flex-direction: column; } } .button { padding: 2rem 1.2rem; display: grid; place-items: center; cursor: pointer; transition: border 0.3s; background: var(--hover); border: 3px solid transparent; border-radius: var(--border-radius); img { max-width: 100%; } &[data-active="true"] { cursor: default; background: var(--secondary-background); border: 3px solid var(--accent); &:hover { border: 3px solid var(--accent); } } &:hover { background: var(--secondary-background); border: 3px solid var(--tertiary-background); } } h4 { text-transform: unset !important; a { opacity: 0.7; color: var(--accent); font-weight: 600; &:hover { text-decoration: underline; } } @media only screen and (max-width: 800px) { a { display: block; } } } `; interface Props { value?: EmojiPack; setValue: (pack: EmojiPack) => void; } export function EmojiSelector({ value, setValue }: Props) { return ( <>

setValue("mutant")} data-active={!value || value === "mutant"}> e.preventDefault()} />

Mutant Remix{" "} (by Revolt)

setValue("twemoji")} data-active={value === "twemoji"}> e.preventDefault()} />

Twemoji

setValue("openmoji")} data-active={value === "openmoji"}> e.preventDefault()} />

Openmoji

setValue("noto")} data-active={value === "noto"}> e.preventDefault()} />

Noto Emoji

); }