import { Icon } from 'tailchat-design'; import React, { PropsWithChildren } from 'react'; import { useReducer } from 'react'; export const GroupSection: React.FC< PropsWithChildren<{ header: string; }> > = React.memo((props) => { const [isShow, switchShow] = useReducer((v) => !v, true); return (
{props.header}
ref?.style.setProperty('--max-height', `${ref.scrollHeight}px`) } > {props.children}
); }); GroupSection.displayName = 'GroupSection';