import { images } from "../../data";
import styles from "./styles.module.scss";

interface TextWithEmojiProps {
    text: string;
    emoji: string;
}

function TextWithEmoji({ text, emoji }: TextWithEmojiProps) {
    return (
        <div className={styles.container}>
            <img src={images(emoji)} alt={emoji} />
            <p className={styles.text}>{text}</p>
        </div>
    )
}

export default TextWithEmoji