"use client"; import { Lock } from "lucide-react"; import { ROOM_BACKGROUNDS, isRoomBackgroundUnlocked, type RoomBackgroundId, } from "@/lib/room-backgrounds"; import { cn } from "@/lib/utils"; type RoomBackgroundPickerProps = { value: RoomBackgroundId; ownedItemIds: string[]; onChange: (roomId: RoomBackgroundId) => void; onLockedSelect?: (roomId: RoomBackgroundId) => void; compact?: boolean; }; export function RoomBackgroundPicker({ value, ownedItemIds, onChange, onLockedSelect, compact = false, }: RoomBackgroundPickerProps) { return (
{!compact ? (

Room background

Pick the scene behind your pet. Premium rooms unlock in the shop.

) : (

Premium rooms unlock in the shop.

)}
{ROOM_BACKGROUNDS.map((room) => { const unlocked = isRoomBackgroundUnlocked(room.id, ownedItemIds); const selected = value === room.id; return ( ); })}
); }