mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* New: Add the heading structure components [APP-1792] (#391) * New: Add the new rules [APP-1792] * New: Add the BE integration [APP-1792] * Fix: Fix QA issues [APP-1792] * merge latest dev * merge latest dev * merge latest dev * merge latest dev * merge latest dev * merge latest dev * add reset to initial --------- Co-authored-by: Pavlo Kniazevych <139438463+pkniazevych@users.noreply.github.com> Co-authored-by: Kniazevych <pavlok@elementor.red>
25 lines
572 B
JavaScript
25 lines
572 B
JavaScript
import Chip from '@elementor/ui/Chip';
|
|
import PropTypes from 'prop-types';
|
|
import { BLOCKS } from '@ea11y-apps/scanner/constants';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
export const ResolveChip = ({ block }) =>
|
|
block === BLOCKS.altText ? (
|
|
<Chip
|
|
size="small"
|
|
color="info"
|
|
variant="standard"
|
|
label={__('Resolve with Ally', 'pojo-accessibility')}
|
|
/>
|
|
) : (
|
|
<Chip
|
|
size="small"
|
|
color="secondary"
|
|
variant="standard"
|
|
label={__('Resolve manually', 'pojo-accessibility')}
|
|
/>
|
|
);
|
|
|
|
ResolveChip.propTypes = {
|
|
block: PropTypes.string.isRequired,
|
|
};
|