import React from "react"; import Typography from "@mui/material/Typography"; import Tooltip from "@mui/material/Tooltip"; import PaletteSharpIcon from "@mui/icons-material/PaletteSharp"; import { Settings } from "../../Settings/Settings"; import { IPredefinedTheme } from "../Themes"; import { Link, Card, CardHeader, CardContent, CardMedia, Button } from "@mui/material"; interface IProps { theme: IPredefinedTheme; onActivated: () => void; onImageClick: (src: string) => void; } export function ThemeEntry({ theme, onActivated, onImageClick }: IProps): React.ReactElement { if (!theme) return <>; return ( } title={theme.name} subheader={ <> by {theme.credit}{" "} {theme.reference && ( <> ( ref ) )} } sx={{ color: Settings.theme.primary, "& .MuiCardHeader-subheader": { color: Settings.theme.secondarydark, }, "& .MuiButton-outlined": { backgroundColor: "transparent", }, }} /> onImageClick(theme.screenshot)} /> {theme.description} ); }