/* -------------------------------------------------------------------------- */ /* Imports */ /* -------------------------------------------------------------------------- */ import React from "react"; import { Disclosure as Disclose } from "@headlessui/react"; import { ReactComponent as SelectIcon } from "../assets/svg/arrow-down.svg"; import classNames from "classnames"; /* -------------------------------------------------------------------------- */ /* Component props */ /* -------------------------------------------------------------------------- */ type Props = { children?: React.ReactNode; className?: string; caption?: string; }; /* -------------------------------------------------------------------------- */ /* styles */ /* -------------------------------------------------------------------------- */ const ButtonStyle = ` flex w-full justify-between items-center py-2 text-left text-base font-medium text-black-400 `; /* -------------------------------------------------------------------------- */ /* Component implementation */ /* -------------------------------------------------------------------------- */ export default function Disclosure({ children, className, caption }: Props) { return (
{({ open }) => ( <> {caption} {children} )}
); }