import { Card } from '@/components/ui/Card';
import Img from '@/components/ui/Img';
import { dbInternalGetAllMessageByDate } from '@/lib/db/functions';
import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/Dialog';
import { Button } from '@/components/ui/Button';
import { IconArrowUpRight } from '@/components/ui/Icons';
import MessageGrid from '@/components/internal/MessageGrid';

export interface InternalServerProps {
  date: string;
}

export default async function InternalServer({ date }: InternalServerProps) {
  const messages = await dbInternalGetAllMessageByDate(date);
  return <MessageGrid messages={messages} />;
}
