import React from 'react'; interface ITextIconButton { label: string, title: string, active: boolean, onClick: () => void, ariaControls: string, unavailable: boolean, } const TextIconButton: React.FC = ({ label, title, active, ariaControls, unavailable, onClick, }) => { const handleClick: React.MouseEventHandler = (e) => { e.preventDefault(); onClick(); }; if (unavailable) { return null; } return ( ); }; export default TextIconButton;