import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { useState } from "react"; import BorderedContainer from "./BorderedContainer"; type Props = { caption: string; children: React.ReactNode; }; export default function FoldableBorderedContainerWithCaption({ caption, children, }: Props) { const [isOpen, setIsOpen] = useState(true); const handleToggle = () => { setIsOpen((prev) => !prev); }; return (

{caption}

{children}
); }