mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
import {Plug} from "@phosphor-icons/react";
|
|
import React from "react";
|
|
import {Image} from "@heroui/react";
|
|
import PluginDto from "Frontend/generated/org/gameyfin/app/core/plugins/dto/PluginDto";
|
|
|
|
interface PluginLogoProps {
|
|
plugin: PluginDto;
|
|
}
|
|
|
|
export default function PluginLogo({plugin}: PluginLogoProps) {
|
|
return (
|
|
<>
|
|
{plugin.hasLogo ?
|
|
<Image isBlurred src={`/images/plugins/${plugin.id}/logo`} width={64} height={64} radius="none"/> :
|
|
<Plug size={64} weight="fill"/>
|
|
}
|
|
</>
|
|
);
|
|
} |