import { useSyncExternalStore } from 'react'
import {
  readIslanderUnlocked,
  subscribeIslanderUnlocked,
} from '../lib/islander/unlock'

export function useIslanderUnlock() {
  return useSyncExternalStore(subscribeIslanderUnlocked, readIslanderUnlocked, () => false)
}