import * as React from 'react'; import { Icon } from '../Icon'; import { i18n } from '../../utils/i18n'; import { useUsercentrics } from '../../contexts/UsercentricsContext'; import { cx } from '../../utils/cx'; export interface AcceptAndCloseCTAProps { onClick: VoidFunction; } export const AcceptAndCloseCTA = ({ onClick }: AcceptAndCloseCTAProps): JSX.Element => { const { locale } = useUsercentrics(); const text = i18n('acceptAndClose', locale); return (