import { TableBlockObjectResponse } from "@notionhq/client/build/src/api-endpoints"; import React from "react"; import { getBlocks } from "../getFromNotion"; import { asyncComponent } from "../../types/types"; import { RichText } from "./RichText"; export const Table = asyncComponent( async ({ block }: { block: TableBlockObjectResponse }) => { const children = await getBlocks(block.id); const has_column_header = block.table.has_column_header; const has_row_header = block.table.has_row_header; return (
|
|
);
} else {
return <>>;
}
})}