- {limits.concurrentRuns.number}
- {limits.concurrentRuns.canExceed ? "+" : ""}{" "}
-
- concurrent runs
-
+
+
+ {limits.concurrentRuns.canExceed ? (
+ <>
+ {limits.concurrentRuns.number}
+ {"+"}
+ >
+ ) : (
+ <>{limits.concurrentRuns.number} >
+ )}{" "}
+
+ concurrent runs
+
+
+ {children &&
{children}}
+
);
}
-function TeamMembers({ limits }: { limits: Limits }) {
+function TeamMembers({ limits, children }: { limits: Limits; children?: React.ReactNode }) {
return (
- {limits.teamMembers.number}
- {limits.concurrentRuns.canExceed ? "+" : ""} team members
+
+
+ {limits.teamMembers.number}
+ {limits.teamMembers.canExceed ? "+" : ""} team members
+
+ {children &&
{children}}
+
);
}
@@ -957,17 +1001,22 @@ function Environments({ limits }: { limits: Limits }) {
);
}
-function Schedules({ limits }: { limits: Limits }) {
+function Schedules({ limits, children }: { limits: Limits; children?: React.ReactNode }) {
return (
- {limits.schedules.number}
- {limits.schedules.canExceed ? "+" : ""}{" "}
-
- schedules
-
+
+
+ {limits.schedules.number}
+ {limits.schedules.canExceed ? "+" : ""}{" "}
+
+ schedules
+
+
+ {children &&
{children}}
+
);
}
@@ -1012,32 +1061,52 @@ function Alerts({ limits }: { limits: Limits }) {
);
}
-function RealtimeConnecurrency({ limits }: { limits: Limits }) {
+function RealtimeConcurrency({ limits, children }: { limits: Limits; children?: React.ReactNode }) {
return (
- {limits.realtimeConcurrentConnections.number}
- {limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "}
-
- concurrent Realtime connections
-
+
+
+ {limits.realtimeConcurrentConnections.canExceed ? (
+ <>
+ {limits.realtimeConcurrentConnections.number}
+ {"+"}
+ >
+ ) : (
+ <>{limits.realtimeConcurrentConnections.number} >
+ )}{" "}
+
+ concurrent Realtime connections
+
+
+ {children &&
{children}}
+
);
}
-function Branches({ limits }: { limits: Limits }) {
+function Branches({ limits, children }: { limits: Limits; children?: React.ReactNode }) {
return (
0}>
- {limits.branches.number}
- {limits.branches.canExceed ? "+ " : " "}
-
- preview branches
-
+
+
+ {limits.branches.number > 0 && (
+ <>
+ {limits.branches.number}
+ {limits.branches.canExceed ? "+ " : " "}
+ >
+ )}
+
+ {limits.branches.number > 0 ? "preview" : "Preview"} branches
+
+
+ {children &&
{children}}
+
);
}