import React from 'react'; import { ChevronDown } from 'react-feather'; import cx from 'clsx'; import { SectionNameType } from './shared/Basic'; import Button from './Button'; import s from './CollapsibleSectionHeader.module.css'; type Props = { name: string, type: string, qty?: number, toggle?: () => void, isOpen?: boolean, }; export default function Header({ name, type, toggle, isOpen, qty }: Props) { return (
{typeof qty === 'number' ? {qty} : null}
); }