ai-clip-factory / src /lib /useRandomPartyId.ts
jbilcke-hf's picture
jbilcke-hf HF staff
initial commit
9a42933
raw
history blame
258 Bytes
"use client"
import { useEffect, useState } from "react"
import { getRandomPartyId } from "./getRandomPartyId"
export function useRandomPartyId() {
const [id, setId] = useState("")
useEffect(() => {
setId(getRandomPartyId())
}, [])
return id
}