import { ComponentProps, splitProps } from "solid-js"; import { useClient } from "@revolt/client"; import { EmojiBase } from "."; /** * Display custom emoji */ export function CustomEmoji( props: { id: string } & Omit< ComponentProps, "loading" | "class" | "draggable" | "src" >, ) { const [local, remote] = splitProps(props, ["id"]); const client = useClient(); /** * Resolve emoji URL */ const url = () => `${client()?.configuration?.features.autumn.url}/emojis/${local.id}`; return ( ); }