import React,{ ReactNode } from 'react';
import Prose, { ProseProps } from '../Prose';
import Heading, { HeadingProps } from '../Heading';

export interface ParagraphProps {
    heading?: HeadingProps;
    prose?: ProseProps;
    button?: ReactNode;
}

const Paragraph = ({ heading, prose, button }: ParagraphProps) => {
    return (
        <>
            <Heading {...heading} />
            <Prose {...prose} />
            {button}
        </>
    );
};

export default Paragraph;
