UNPKG

shipthis

Version:

ShipThis manages building and uploading your Godot games to the App Store and Google Play.

39 lines (36 loc) 1.7 kB
import { jsxs, jsx } from 'react/jsx-runtime'; import { Box, Text } from 'ink'; import Spinner from 'ink-spinner'; import 'node:crypto'; import 'node:fs'; import 'node:path'; import 'node:readline'; import 'node:url'; import 'readline-sync'; import 'luxon'; import 'axios'; import 'isomorphic-git'; import './index-BwnzoldS.js'; import '@oclif/core'; import '@tanstack/react-query'; import 'react'; import 'crypto-js'; import 'uuid'; import { u as useProjectCredentials, g as getProjectCredentialSummary } from './useProjectCredentials-DxdwJCfU.js'; import 'fast-glob'; import 'yazl'; import 'socket.io-client'; import 'fullscreen-ink'; import { T as Table } from './Table-FaNgpyeq.js'; import { T as Title } from './Title-BCQtayg6.js'; const ProjectCredentialsTable = ({ credentialTypeName, queryProps, ...boxProps }) => { const { data, isLoading } = useProjectCredentials(queryProps); const hasActive = data?.data.some((credential) => credential.isActive); return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, ...boxProps, children: [ /* @__PURE__ */ jsx(Title, { children: `${credentialTypeName}s in your ShipThis account` }), /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginBottom: 1, marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { children: hasActive ? `You have an active ${credentialTypeName} in your ShipThis account.` : `You DO NOT have an active ${credentialTypeName} which ShipThis can use.` }) }), isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }), data && data.data.length > 0 && /* @__PURE__ */ jsx(Table, { data: data.data.map(getProjectCredentialSummary) }) ] }); }; export { ProjectCredentialsTable as P };