one-click-accessibility/modules/scanner/assets/js/components/empty-manage-message/index.js
2025-11-11 14:02:58 +02:00

41 lines
1.1 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Button from '@elementor/ui/Button';
import Typography from '@elementor/ui/Typography';
import { BLOCKS } from '@ea11y-apps/scanner/constants';
import { useTabsContext } from '@ea11y-apps/scanner/context/tabs-context';
import { EmptyImage } from '@ea11y-apps/scanner/images';
import { StateContainer } from '@ea11y-apps/scanner/styles/app.styles';
import { __ } from '@wordpress/i18n';
export const EmptyManageMessage = () => {
const { tabsProps } = useTabsContext();
const handleChangeTab = (event) => {
tabsProps.onChange(event, BLOCKS.main);
};
return (
<StateContainer sx={{ px: 6 }}>
<EmptyImage />
<Typography variant="subtitle1" as="h3" align="center">
{__('No fixes yet', 'pojo-accessibility')}
</Typography>
<Typography variant="body2" align="center" color="text.secondary">
{__(
'Once you start fixing issues for this page, theyll appear here.',
'pojo-accessibility',
)}
</Typography>
<Button
size="small"
variant="text"
color="info"
onClick={handleChangeTab}
>
{__('Fix issues', 'pojo-accessibility')}
</Button>
</StateContainer>
);
};