File size: 258 Bytes
9a42933
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
"use client"

import { useEffect, useState } from "react"

import { getRandomPartyId } from "./getRandomPartyId"

export function useRandomPartyId() {
  const [id, setId] = useState("")
  useEffect(() => {
    setId(getRandomPartyId())
  }, [])
  return id
}