import { useState, type ReactNode } from 'react'
import { Badge, Button, Card, CopyableId, Notice, PageTitle } from '../components/ui'
import { RegisterForm } from '../components/RegisterForm'
import { useIslanderUnlock } from '../hooks/useIslanderUnlock'
import { writeIslanderUnlocked } from '../lib/islander/unlock'
import {
easterEggCatalog,
easterEggKindLabel,
type EasterEggEntry,
} from '../lib/easterEggCatalog'
const ADMIN_TOGGLE_IDS = new Set(['hidden-register', 'islander-guide'])
function EasterEggCard({
entry,
action,
}: {
entry: EasterEggEntry
action?: ReactNode
}) {
const kindTone =
entry.kind === 'keyboard' ? 'brand' : entry.kind === 'admin-page' ? 'sky' : 'neutral'
return (
{entry.summary} 無 — 透過管理員導覽進入
備註:
{entry.notes}
{entry.title}
操作步驟
{entry.howTo.map((step) => (