mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
25 lines
585 B
JavaScript
25 lines
585 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 Web Accessibility', 'pojo-accessibility')}
|
|
/>
|
|
) : (
|
|
<Chip
|
|
size="small"
|
|
color="secondary"
|
|
variant="standard"
|
|
label={__('Resolve manually', 'pojo-accessibility')}
|
|
/>
|
|
);
|
|
|
|
ResolveChip.propTypes = {
|
|
block: PropTypes.string.isRequired,
|
|
};
|