@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
12 lines (11 loc) • 1.5 kB
JavaScript
;const e=require("react/jsx-runtime"),l=require("./index-DwV9MiDB.js"),t=require("./createLucideIcon-DpotSgUx.js");/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]],x=t.createLucideIcon("list-x",o);/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],u=t.createLucideIcon("search-x",h),m=({entityName:a,textFilter:s,hasFilters:n,className:r,children:i,actions:c,...d})=>e.jsxs("div",{role:"status","aria-live":"polite",className:l.cn("text-muted-foreground flex gap-3",r),...d,children:[s?e.jsx(u,{}):e.jsx(x,{}),e.jsxs("span",{className:"flex flex-col gap-3",children:[i??e.jsxs("span",{children:["No ",a??"results"," found",s?e.jsxs(e.Fragment,{children:[" for ",e.jsxs("i",{children:['"',s,'"']})," search"]}):n?e.jsx(e.Fragment,{children:" for your selected filters"}):null,"."]}),c&&e.jsx("div",{className:"flex gap-2",children:c})]})]});exports.EmptyState=m;