mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
16 lines
475 B
JavaScript
16 lines
475 B
JavaScript
import { BLOCKS } from '@ea11y-apps/scanner/constants';
|
|
import { useScannerWizardContext } from '@ea11y-apps/scanner/context/scanner-wizard-context';
|
|
import Breadcrumbs from './breadcrumbs';
|
|
import HeadingStructureSubheader from './heading-structure';
|
|
|
|
const Subheader = () => {
|
|
const { openedBlock } = useScannerWizardContext();
|
|
|
|
return openedBlock === BLOCKS.headingStructure ? (
|
|
<HeadingStructureSubheader />
|
|
) : (
|
|
<Breadcrumbs />
|
|
);
|
|
};
|
|
|
|
export default Subheader;
|