import { useRef } from "react"; import classNames from "classnames"; import { Disclosure, Transition } from '@headlessui/react'; import { MdKeyboardArrowDown } from "react-icons/md"; import ErrorBoundary from "components/errorboundry"; import List from "components/bookmarks/list"; import ResolvedIcon from "components/resolvedicon"; export default function BookmarksGroup({ bookmarks, layout, disableCollapse }) { const panel = useRef(); return (
{({ open }) => ( <> {layout?.header !== false && ( {layout?.icon && (
)}

{bookmarks.name}

)} { panel.current.style.height = `${panel.current.scrollHeight}px`; setTimeout(() => { panel.current.style.height = `0`; }, 1); }} beforeEnter={() => { panel.current.style.height = `0px`; setTimeout(() => { panel.current.style.height = `${panel.current.scrollHeight}px`; }, 1); }} > )}
); }