diff --git a/app/share/[id]/opengraph-image.tsx b/app/share/[id]/opengraph-image.tsx deleted file mode 100644 index a061179..0000000 --- a/app/share/[id]/opengraph-image.tsx +++ /dev/null @@ -1,118 +0,0 @@ -import { ImageResponse } from 'next/og' - -import { getSharedChat } from '@/app/actions' - -export const runtime = 'edge' - -export const alt = 'AI Chatbot' - -export const size = { - width: 1200, - height: 630 -} - -export const contentType = 'image/png' - -const interRegular = fetch( - new URL('../../../assets/fonts/Inter-Regular.woff', import.meta.url) -).then(res => res.arrayBuffer()) - -const interBold = fetch( - new URL('../../../assets/fonts/Inter-Bold.woff', import.meta.url) -).then(res => res.arrayBuffer()) - -interface ImageProps { - params: { - id: string - } -} - -export default async function Image({ params }: ImageProps) { - const chat = await getSharedChat(params.id) - - if (!chat || !chat?.sharePath) { - return null - } - - const textAlign = chat?.title?.length > 40 ? 'items-start' : 'items-center' - - return new ImageResponse( - ( -
-
-
-
- - - -
-
- {chat.title.length > 120 - ? `${chat.title.slice(0, 120)}...` - : chat.title} -
-
-
-
- - - -
-
- ... -
-
-
-
-
- - - -
- Built with{' '} -
Vercel AI SDK
& -
KV
-
-
-
chat.vercel.ai
-
-
- ), - { - ...size, - fonts: [ - { - name: 'Inter', - data: await interRegular, - style: 'normal', - weight: 400 - }, - { - name: 'Inter', - data: await interBold, - style: 'normal', - weight: 700 - } - ] - } - ) -} diff --git a/assets/fonts/Inter-Bold.woff b/assets/fonts/Inter-Bold.woff deleted file mode 100644 index 1e80f62..0000000 Binary files a/assets/fonts/Inter-Bold.woff and /dev/null differ diff --git a/assets/fonts/Inter-Regular.woff b/assets/fonts/Inter-Regular.woff deleted file mode 100644 index 4c6b711..0000000 Binary files a/assets/fonts/Inter-Regular.woff and /dev/null differ diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx index a8a7ac3..a724af0 100644 --- a/components/ui/sheet.tsx +++ b/components/ui/sheet.tsx @@ -56,7 +56,7 @@ interface SheetContentProps const SheetContent = React.forwardRef< React.ElementRef, SheetContentProps ->(({ side = 'right', className, children, ...props }, ref) => ( +>(({ side = 'left', className, children, ...props }, ref) => (