31 lines
591 B
TypeScript
31 lines
591 B
TypeScript
import { ImageResponse } from 'next/og';
|
|
|
|
export const size = {
|
|
width: 32,
|
|
height: 32,
|
|
};
|
|
export const contentType = 'image/png';
|
|
|
|
export default function Icon() {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
fontSize: 24,
|
|
background: "#ec4899",
|
|
width: "100%",
|
|
height: "100%",
|
|
display: "flex",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
color: "white",
|
|
borderRadius: "8px",
|
|
fontWeight: "bold",
|
|
}}
|
|
>
|
|
H
|
|
</div>
|
|
),
|
|
{ ...size }
|
|
);
|
|
} |