import { ObjectListView } from '@/features/objects/ui/ObjectListView';

export const metadata = {
  title: 'Records',
};

/** List of any custom object's records (HUB-264); `/events`, `/leads`, `/tickets` are aliases. */
export default async function ObjectListPage({ params }: { params: Promise<{ key: string }> }) {
  const { key } = await params;
  return <ObjectListView objectKey={decodeURIComponent(key)} />;
}
