import React from "react"; import { SpaceProps } from "styled-system"; import { ChevronDownIcon, ChevronUpIcon } from "../Svg"; import Button from "./Button"; import IconButton from "./IconButton"; interface Props extends SpaceProps { onClick?: () => void; expanded?: boolean; } export const ExpandableButton: React.FC> = ({ onClick, expanded, children, ...rest }) => { return ( {children} {expanded ? : } ); }; ExpandableButton.defaultProps = { expanded: false, }; export const ExpandableLabel: React.FC> = ({ onClick, expanded, children, ...rest }) => { return ( ); }; ExpandableLabel.defaultProps = { expanded: false, };