atproto explorer pdsls.dev
atproto tool
at main 444 B view raw
1export const MenuItem = (props: { icon: string; label: string; onClick: () => void }) => { 2 return ( 3 <button 4 type="button" 5 class="flex items-center gap-2 rounded-md p-2 text-left text-xs hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-600" 6 onClick={props.onClick} 7 > 8 <span class={`iconify ${props.icon}`}></span> 9 <span>{props.label}</span> 10 </button> 11 ); 12};