UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

37 lines (35 loc) 1.9 kB
import { Text_default } from "./chunk-IMCIR6TJ.mjs"; // src/components/NoSearchResult/NoSearchResult.tsx import { jsx, jsxs } from "react/jsx-runtime"; var NoSearchResult = ({ image, title, description }) => { const displayTitle = title || "Nenhum resultado encontrado"; const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave."; return /* @__PURE__ */ jsxs("div", { className: "flex flex-col lg:flex-row justify-center items-center gap-6 lg:gap-8 w-full max-w-4xl min-h-96 px-4 lg:px-0", children: [ /* @__PURE__ */ jsx("div", { className: "w-48 h-48 lg:w-72 lg:h-72 flex-shrink-0 relative max-w-full", children: /* @__PURE__ */ jsx( "img", { src: image, alt: "No search results", className: "w-full h-full object-contain" } ) }), /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center lg:items-start w-full max-w-md min-w-0", children: [ /* @__PURE__ */ jsx("div", { className: "flex flex-row justify-center lg:justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ jsx( Text_default, { as: "h2", className: "text-text-950 font-semibold text-xl lg:text-3xl leading-tight w-full flex items-center justify-center lg:justify-start text-center lg:text-left", children: displayTitle } ) }), /* @__PURE__ */ jsx("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ jsx(Text_default, { className: "text-text-600 font-normal text-base lg:text-lg leading-relaxed w-full text-center lg:text-justify", children: displayDescription }) }) ] }) ] }); }; var NoSearchResult_default = NoSearchResult; export { NoSearchResult_default }; //# sourceMappingURL=chunk-ZBEW4SPB.mjs.map