import styles from './Embed.module.scss'; import { Embed } from "revolt.js/dist/api/objects"; import { useIntermediate } from '../../../../context/intermediate/Intermediate'; interface Props { embed: Embed; width?: number; height: number; } export default function EmbedMedia({ embed, width, height }: Props) { // ! FIXME: temp code // ! add proxy function to client function proxyImage(url: string) { return 'https://jan.revolt.chat/proxy?url=' + encodeURIComponent(url); } if (embed.type !== 'Website') return null; const { openScreen } = useIntermediate(); switch (embed.special?.type) { case 'YouTube': return (