UNPKG

@wordpress/block-editor

Version:
49 lines (45 loc) 1.79 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactNative = require("react-native"); var _compose = require("@wordpress/compose"); var _i18n = require("@wordpress/i18n"); var _style = _interopRequireDefault(require("./style.scss")); var _jsxRuntime = require("react/jsx-runtime"); /** * External dependencies */ /** * WordPress dependencies */ /** * Internal dependencies */ function InserterNoResults() { const { 'inserter-search-no-results__container': containerStyle, 'inserter-search-no-results__text-primary': textPrimaryBaseStyle, 'inserter-search-no-results__text-primary--dark': textPrimaryDarkStyle, 'inserter-search-no-results__text-secondary': textSecondaryBaseStyle, 'inserter-search-no-results__text-secondary--dark': textSecondaryDarkStyle } = _style.default; const textPrimaryStyle = (0, _compose.usePreferredColorSchemeStyle)(textPrimaryBaseStyle, textPrimaryDarkStyle); const textSecondaryStyle = (0, _compose.usePreferredColorSchemeStyle)(textSecondaryBaseStyle, textSecondaryDarkStyle); return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, { style: containerStyle, children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: textPrimaryStyle, children: (0, _i18n.__)('No blocks found') }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: textSecondaryStyle, children: (0, _i18n.__)('Try another search term') })] }) }); } var _default = exports.default = InserterNoResults; //# sourceMappingURL=no-results.native.js.map