Skip to content

Commit 6ae157f

Browse files
comment
1 parent 1bc1260 commit 6ae157f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/partials/networking-services/account-id-api-key.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
import { Markdown } from "~/components";
77

8+
{/*
9+
Conditional rendering based on showSiteId prop:
10+
- When showSiteId=true (NetFlow page): "To export NetFlow statistics, you will need your [account ID] and [API token], as well as the `site_id` associated with your Magic WAN Connector."
11+
- When showSiteId=false/undefined (other pages): "You will need your [account ID] and [API token] to use the API."
12+
The ternaries only render the differing prefix and suffix to avoid content duplication.
13+
*/}
814
:::note
915
<Markdown text={`${props.showSiteId ? "To export NetFlow statistics, you" : "You"} will need your [account ID](/fundamentals/account/find-account-and-zone-ids/) and [API token](/fundamentals/api/get-started/account-owned-tokens/)${props.showSiteId ? ", as well as the \`site_id\` associated with your Magic WAN Connector" : " to use the API"}.`} />
1016
:::

0 commit comments

Comments
 (0)