import { Text, Box, Collapse, Switch } from '@chakra-ui/react' import React from 'react' import { InfoTooltip } from './InfoTooltip' export interface EnableSectionProps { label: string value: boolean | number onChange: () => void infoText?: string children: React.ReactNode } export const EnableSection = (props: EnableSectionProps) => { const { value, onChange, label, infoText, children } = props return ( {label} {infoText && } {children} ) }