mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-23 17:03:34 +08:00
* [APP-934] add submit logic * [APP-934] add submit logic * [APP-934] add submit logic * [APP-934] add submit logic * Added replace remediation action * Add submit logic * Add submit alt text logic, generate AI alt text * Add AI generate request, add convert from SVG to png base64, added manual fix block * Add AI generate request, add convert from SVG to png base64, added manual fix block * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation --------- Co-authored-by: Raz Ohad <admin@bainternet.info>
25 lines
571 B
JavaScript
25 lines
571 B
JavaScript
import { Chip } from '@elementor/ui';
|
|
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,
|
|
};
|