Skip to content

An AI-powered search engine with a generative UI

remove author property

Anusha Yella04a23e86b934
diff --git a/components/search-results.tsx b/components/search-results.tsx
index f91b71d1..62c067e2 100644
--- a/components/search-results.tsx
+++ b/components/search-results.tsx
@@ -5,10 +5,9 @@ import { AvatarImage, Avatar, AvatarFallback } from '@/components/ui/avatar'
import { CardContent, Card } from '@/components/ui/card'
import { Button } from '@/components/ui/button'
import Link from 'next/link'
-import { SearchResultItem } from '@/lib/types'
export interface SearchResultsProps {
- results: SearchResultItem[]
+ results: { title: string; url: string; content: string; author?: string }[]
}
export function SearchResults({ results }: SearchResultsProps) {
diff --git a/lib/types/index.ts b/lib/types/index.ts
index debd8a34..12593c1e 100644
--- a/lib/types/index.ts
+++ b/lib/types/index.ts
@@ -21,7 +21,6 @@ export type SearchResultItem = {
title: string
url: string
content: string
- author?: string
}
export type ExaSearchResultItem = {