import { useProviderContext } from '@agentscope-ai/chat' import Style from './style'; import { useMemo } from 'react'; interface IBeforeUIContainerProps { leftChildren?: React.ReactNode; rightChildren?: React.ReactNode; children?: React.ReactNode; } export default function BeforeUIContainer({ leftChildren, rightChildren, children }: IBeforeUIContainerProps) { const prefixCls = useProviderContext().getPrefixCls('sender-before-ui-container'); const left = useMemo(() => { if (leftChildren) return