Skip to content

Instantly share code, notes, and snippets.

View nmanumr's full-sized avatar

Nauman Umer nmanumr

View GitHub Profile
import { ChevronUpDownIcon } from '@heroicons/react/24/outline';
import { PropsWithChildren, useContext, useState } from 'react';
import {
Button as ButtonBase,
Collection,
Popover, SelectStateContext,
TreeItemProps,
UNSTABLE_Tree as Tree,
UNSTABLE_TreeItem as TreeItem,
UNSTABLE_TreeItemContent as TreeItemContent,
const fakeObjectSymbol = Symbol('fakeObject');
function getFakeNestedObject(baseName) {
return new Proxy(
{
toString() => baseName,
deps: baseName,
[fakeObjectSymbol]: true,
},
{