31 lines
683 B
TypeScript
31 lines
683 B
TypeScript
import { ImageResponse } from "next/og";
|
|
|
|
export const runtime = "edge";
|
|
export const size = { width: 32, height: 32 };
|
|
export const contentType = "image/png";
|
|
|
|
export default function Icon() {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
width: 32,
|
|
height: 32,
|
|
display: "flex",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
background: "linear-gradient(135deg, #0ea5e9, #6366f1, #a855f7)",
|
|
borderRadius: 8,
|
|
fontSize: 20,
|
|
fontWeight: 700,
|
|
color: "white",
|
|
fontFamily: "sans-serif",
|
|
}}
|
|
>
|
|
D
|
|
</div>
|
|
),
|
|
{ ...size },
|
|
);
|
|
}
|