import React from "react"; import { useProviderContext } from "../Provider"; interface IBodyContentProps { children: React.ReactNode; headerLeft?: React.ReactNode; headerRight?: React.ReactNode; } export default function (props: IBodyContentProps) { const { getPrefixCls } = useProviderContext(); const prefixCls = getPrefixCls('accordion-content-body'); return
{ (props.headerLeft || props.headerRight) ?
{props.headerLeft}
{props.headerRight}
: null }
{props.children}
}