37 lines
670 B
TypeScript
37 lines
670 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={{
|
|
fontSize: 18,
|
|
background: 'linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)',
|
|
width: '100%',
|
|
height: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
color: 'white',
|
|
borderRadius: 6,
|
|
fontWeight: 'bold',
|
|
}}
|
|
>
|
|
SP
|
|
</div>
|
|
),
|
|
{
|
|
...size,
|
|
}
|
|
)
|
|
}
|