import { Icon } from '@iconify/react'; import React from 'react'; import { useReducer } from 'react'; export const GroupSection: React.FC<{ 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';