import * as React from 'react'; import Modal from 'react-modal'; import { AcceptAndCloseCTA } from '../AcceptAndCloseCTA'; import { useUsercentrics } from '../../contexts/UsercentricsContext'; import { cx } from '../../utils/cx'; function htmlDecode(content: string) { const txt = document.createElement('textarea'); txt.innerHTML = content; return txt.value; } export type Props = { isOpen: boolean; onAcceptAll: VoidFunction; onCloseAndAcceptAll: VoidFunction; onSettings: VoidFunction; }; export const InitialDialog = ({ isOpen, onAcceptAll, onCloseAndAcceptAll, onSettings }: Props): JSX.Element => { const { showCloseAndAcceptAllButton, settingsLabels } = useUsercentrics(); return (
{showCloseAndAcceptAllButton && }

{settingsLabels?.firstLayer.title}

); };