{commands.map((cmd, index) => (
{cmd}
))}
);
};
export const Tooltip = ({
children,
content,
side = 'top',
align = 'center',
shortcut,
options,
rootOptions,
portalOptions,
}: TooltipProps) => {
if (!content) {
return children;
}
const { className, ...contentOptions } = options || {};
const { style: contentStyle, ...restContentOptions } = contentOptions;
return (