import type { HTMLAttributes } from 'react'
import React, { forwardRef } from 'react'
import { useAccordion } from './Accordion'
import { useAccordionItem } from './AccordionItem'
export interface AccordionPanelProps
extends Omit, 'role'> {
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
testId?: string
}
const AccordionPanel = forwardRef(
function AccordionPanel(
{ testId = 'fs-accordion-panel', children, ...otherProps },
ref
) {
const { indices } = useAccordion()
const { index, button, panel } = useAccordionItem()
return (
{children}
)
}
)
export default AccordionPanel