Error: could not load this project's session secrets.
+ {error &&
+
+
+
+ Session Secrets
+
+ {sessionSecretSlots && {sessionSecretSlots.length}}
+
+
+ {!userLogged && sessionSecretSlots && sessionSecretSlots.length > 0 && (
+
+
+ As an anonymous user, you cannot use session secrets.
+
+
+ )}
+
+ {content}
+
+ );
+}
+
+interface SessionViewSessionSecretsContentProps {
+ secretsMountDirectory: string;
+ sessionSecretSlots: SessionSecretSlot[];
+ sessionSecrets: SessionSecret[];
+}
+
+function SessionViewSessionSecretsContent({
+ secretsMountDirectory,
+ sessionSecretSlots,
+ sessionSecrets,
+}: SessionViewSessionSecretsContentProps) {
+ const sessionSecretSlotsWithSecrets = useMemo(
+ () =>
+ getSessionSecretSlotsWithSecrets({ sessionSecretSlots, sessionSecrets }),
+ [sessionSecretSlots, sessionSecrets]
+ );
+
+ if (!sessionSecretSlots.length) {
+ return