import { Story } from "@prisma/client"; import { DataTable } from "app/ui/tables/data-table"; import { columns } from "./columns"; import { getGenres, getStoriesWithGenres, getPubsWithGenres } from "app/lib/get"; import { Genre } from "@prisma/client"; import CreateStoryDialog from "./create"; export type StoryWithGenres = Story & { genres: Array } export default async function Page() { const genres = await getGenres() const storiesWithGenres: Array = await getStoriesWithGenres() const pubsWithGenres = await getPubsWithGenres() return (
{/* TODO - EDIT STORY DIALOG */}
) }