import React, {
	Fragment,
	ReactElement,
} from 'react';

import {
	ModuleScriptDataProps,
} from '@divi/module';
import { MapsListingAttrs } from './types';

export const ModuleScriptData = ({
	elements,
}: ModuleScriptDataProps<MapsListingAttrs>): ReactElement => (
	<Fragment>
		{elements.scriptData({
			attrName: 'module',
		})}
	</Fragment>
);
