/* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ import clsx from 'clsx'; import { ReactNode, useState } from 'react'; import ArrowSVG from '@/shared/assets/images/actions/arrowRight.svg?react'; import styles from './expansion-panel.module.scss'; type Props = { heading: string; subheading: string; children: ReactNode; }; const ExpansionPanel = ({ children, heading, subheading }: Props) => { const [isOpen, setIsOpen] = useState(false); const toggle = () => setIsOpen((prevValue) => !prevValue); const arrowClassName = clsx(styles.arrow, isOpen && styles.open); return (
{subheading}