30 lines
608 B
TypeScript
30 lines
608 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: 'linear-gradient(90deg, #667eea 0%, #764ba2 100%)',
|
||
width: '100%',
|
||
height: '100%',
|
||
display: 'flex',
|
||
alignItems: 'center',
|
||
justifyContent: 'center',
|
||
color: 'white',
|
||
borderRadius: '50%',
|
||
}}
|
||
>
|
||
🍽️
|
||
</div>
|
||
),
|
||
{ ...size }
|
||
);
|
||
} |