export const XCloseButton: React.ElementType< React.ClassAttributes & React.HTMLAttributes > = ({ className, ...props }) => ( ); export const OpenInNewTab = ({ href, children, }: { href: string; children: string; }) => ( {children} ); export function BtnWithTooltips({ className, onClick, onMouseLeave, children, tooltipsContent, disabled, }: { className?: string; onClick: () => void; onMouseLeave?: () => void; children: React.ReactNode; tooltipsContent: string; disabled?: boolean; }) { // the onClick handler is on the container, so screen readers can safely ignore the inner button // this prevents the label from being read twice return (
); }