@shopgate/engage
Version:
Shopgate's ENGAGE library.
22 lines (21 loc) • 505 B
JavaScript
import React from 'react';
import WidgetHeadline from "../../components/WidgetHeadline";
import { useWidget } from "../../hooks";
/**
* The HeadlineWidget is used to display a headline text.
* @returns {JSX.Element}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const Headline = () => {
const {
config
} = useWidget();
const {
headline
} = config;
if (!headline) return null;
return /*#__PURE__*/_jsx(WidgetHeadline, {
headline: headline
});
};
export default Headline;