// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {IconButton} from '@astryxdesign/core/IconButton'; import {Icon} from '@astryxdesign/core/Icon'; import {HStack} from '@astryxdesign/core/Stack'; import {useToast} from '@astryxdesign/core/Toast'; export default function IconButtonTooltipIconButton() { const showToast = useToast(); return ( } variant="ghost" tooltip="Search items" onClick={() => showToast({body: 'Demo: search would open here'})} /> } variant="ghost" tooltip="Copy to clipboard" onClick={() => showToast({body: 'Demo: the link would be copied here'})} /> } variant="ghost" tooltip="More options" onClick={() => showToast({body: 'Demo: more options would open here'})} /> ); }