import{_ as a,c as t,a0 as l,o as r}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Function: createActiveChallenge()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/challenges/challenge/functions/createActiveChallenge.md","filePath":"api/features/challenges/challenge/functions/createActiveChallenge.md","lastUpdated":null}'),n={name:"api/features/challenges/challenge/functions/createActiveChallenge.md"};function c(o,e,i,s,h,d){return r(),t("div",null,e[0]||(e[0]=[l('
Profectus / features/challenges/challenge / createActiveChallenge
createActiveChallenge(
challenges
):Ref
<Challenge
|null
>
Utility for taking an array of challenges where only one may be active at a time, and giving a ref to the one currently active (or null if none are active)
Challenge
[]
The list of challenges that are mutually exclusive
Ref
<Challenge
| null
>