mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-23 19:52:44 +08:00
33 lines
923 B
JavaScript
33 lines
923 B
JavaScript
import CardContent from '@elementor/ui/CardContent';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { styled } from '@elementor/ui/styles';
|
|
import { MainList } from '@ea11y-apps/scanner/components/main-list';
|
|
import { Loader } from '@ea11y-apps/scanner/components/main-list/loader';
|
|
import { useScannerWizardContext } from '@ea11y-apps/scanner/context/scanner-wizard-context';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
export const MainLayout = () => {
|
|
const { loading } = useScannerWizardContext();
|
|
|
|
return (
|
|
<StyledContent>
|
|
{loading ? (
|
|
<Loader />
|
|
) : (
|
|
<>
|
|
<Typography variant="body2">
|
|
{__('All issues', 'pojo-accessibility')}
|
|
</Typography>
|
|
<MainList />
|
|
</>
|
|
)}
|
|
</StyledContent>
|
|
);
|
|
};
|
|
|
|
const StyledContent = styled(CardContent)`
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
padding: 0 ${({ theme }) => theme.spacing(1.5)};
|
|
`;
|