vision-agent / components /internal /MessageGridServer.tsx
MingruiZhang's picture
feat: Internal page default filter out examples (#116)
1c2515f unverified
raw
history blame contribute delete
567 Bytes
import { dbInternalGetAllMessageByDate } from '@/lib/db/functions';
import MessageGrid from '@/components/internal/MessageGrid';
import { MessageFilterParams } from '@/lib/types';
export interface MessageGridServerProps {
messageFilter: MessageFilterParams;
}
export default async function MessageGridServer({
messageFilter,
}: MessageGridServerProps) {
const messages = await dbInternalGetAllMessageByDate(messageFilter);
if (!messages.length) {
return <p className="text-sm italic">No messages</p>;
}
return <MessageGrid messages={messages} />;
}