import { ChevronDownIcon } from "@heroicons/react/solid"; import classNames from "classnames"; import { useState } from "react"; import { useIntl } from "react-intl"; export const Collapse = ({ children, title, className, open: defaultOpen = false, onOpenClassName, parentClassName, }: { children: React.ReactNode; title: string | React.ReactNode; className?: string; open?: boolean; onOpenClassName?: string; parentClassName?: string; }) => { const [open, setOpen] = useState(defaultOpen); const intl = useIntl(); return (