%PDF- %PDF-
Direktori : /home/opti/www/startup-life/assets/ |
Current File : /home/opti/www/startup-life/assets/index-e88ca52f.js |
import{u as t,r as x,j as e,C as j,L as g,e as f,z as p}from"./index-5492fbe1.js";import{s as b}from"./styled-components.browser.esm-ee37ee23.js";import{u as y}from"./get-user-startups.api-9a316203.js";import{C as o}from"./index-2c4b8b3c.js";import{B as c}from"./Box-263f925f.js";import{T as C,a as N,b as v,c as a,d as n,e as E}from"./TableRow-4b138891.js";import{P as T}from"./Paper-26f2abc8.js";import"./tslib.es6-ace8e431.js";import"./useQuery-0abbcf43.js";const w=b.div` position: relative; min-height: 100vh; padding-left: 1.94rem; padding-top: 1rem; padding-right: 3.25rem; padding-bottom: 15rem; .PageHero { color: var(--Secondary, #537473); font-size: 1.125rem; font-style: normal; font-weight: 700; line-height: normal; } .startupBtn { border-radius: 0.5rem; background: var(--Primary, #A8CF45); white-space: nowrap; color: #FFF; font-size: 1rem; font-style: normal; font-weight: 600; line-height: normal; } `,U=()=>{const d=t(),{data:i,isLoading:s,isError:l}=y();console.log(i);const h=async()=>{await f.get(p+"/startup-directors?startupId=15").then(r=>{console.log("ps",r)}).catch(r=>{console.log("error",r)})};return x.useEffect(()=>{h()},[]),e.jsxs(w,{children:[e.jsxs(c,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("p",{className:"PageHero",children:"Build a Startup"}),e.jsx("button",{onClick:()=>d("/create-startup"),className:"startupBtn",children:"Create a startup"})]}),e.jsx(c,{sx:{mt:4},children:e.jsx(C,{component:T,children:e.jsxs(N,{children:[e.jsx(v,{children:e.jsxs(a,{children:[e.jsx(n,{children:"SN"}),e.jsx(n,{children:"Company Name"}),e.jsx(n,{children:"Address"}),e.jsx(n,{children:"Phone Number"}),e.jsx(n,{children:"Registered Country"}),e.jsx(n,{children:"Action"})]})}),e.jsxs(E,{children:[e.jsx(o,{appear:s,children:e.jsx(j,{})}),e.jsx(o,{appear:l,children:"ERROR: INTERNET_CONNECTION_REFUSED"}),e.jsx(o,{appear:!s&&!l&&(i==null?void 0:i.length)===0,children:e.jsx("div",{className:"mt-[20px] text-[#537473]",children:"Services you can offer will be listed here..."})}),e.jsx(o,{appear:!s&&!l&&(i==null?void 0:i.length)>0}),i==null?void 0:i.map((r,m)=>e.jsxs(a,{children:[e.jsx(n,{children:m+1}),e.jsx(n,{children:r==null?void 0:r.name}),e.jsx(n,{children:r==null?void 0:r.address}),e.jsxs(n,{children:[r==null?void 0:r.phoneNumber," ",r==null?void 0:r.alternativePhoneNumber]}),e.jsx(n,{children:r==null?void 0:r.country}),e.jsx(n,{children:e.jsx(g,{style:{color:"#067CC6",textDecoration:"underline",fontWeight:500,fontSize:"14px"},to:`/my-startups/${r==null?void 0:r.id}`,children:"View More"})})]},r==null?void 0:r.id))]})]})})})]})};export{U as default};