/** * WordPress dependencies */ import { TextControl } from '@safe-wordpress/components'; import { _x } from '@safe-wordpress/i18n'; /** * Internal dependencies */ import { useAttributes } from '../hooks'; import { DEFAULT_ATTRS } from './config'; import type { FieldSettingProps } from '../types'; export const GdprCookieSetting = ( { name: settingName, disabled, }: FieldSettingProps ): JSX.Element => { const [ attributes, setAttributes ] = useAttributes( settingName, DEFAULT_ATTRS ); const { name, value, _placeholder } = attributes; return (