ConusAI vendor v0.1.0-dev.20261013+85463d22
This commit is contained in:
parent
c3c6526952
commit
0da8a2a81b
@@ -3,14 +3,15 @@ import { serviceCatalogEntry } from '@/shared/api'
|
||||
|
||||
/**
|
||||
* "Link <service> to enable": the text comes from the platform's service catalog
|
||||
* (plan D13), so the card never carries copy of its own.
|
||||
* (plan D13), so the card never carries copy of its own. When the platform read
|
||||
* fails the card still renders, without the catalog details.
|
||||
*/
|
||||
export async function EnableCard({ service }: { service: ServiceType }) {
|
||||
const entry = await serviceCatalogEntry(service)
|
||||
return (
|
||||
<aside>
|
||||
<p>Link {entry.display_name} to enable this.</p>
|
||||
<p>{entry.description}</p>
|
||||
<p>Link {entry?.display_name ?? service} to enable this.</p>
|
||||
{entry ? <p>{entry.description}</p> : null}
|
||||
</aside>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user