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

Function: 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)

Parameters

challenges

Challenge[]

The list of challenges that are mutually exclusive

Returns

Ref<Challenge | null>

Defined in

profectus/src/features/challenges/challenge.tsx:275

',12)]))}const g=a(n,[["render",c]]);export{f as __pageData,g as default};