import React from "react";
import { Stack } from "../Stack";
import { Text } from "../Text";
import { View } from "../View";
type Props = {
children: React.ReactNode;
node: {
heading?: string;
content: { title: string }[];
};
};
const DescriptionListNode = ({ node, children }: Props) => {
return (
<>
{!!node.heading && {node.heading}}
{React.Children.map(children, (child, index) => {
return (
{node.content[index].title}
{child}
);
})}
>
);
};
export default DescriptionListNode;