Remove unused IconButton component
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
type IconButtonProps = {
|
||||
label: string;
|
||||
iconClass: string;
|
||||
callback: React.MouseEventHandler<HTMLButtonElement>;
|
||||
}
|
||||
|
||||
function IconButton(props: IconButtonProps) {
|
||||
const iconClasses = () => {
|
||||
return `bi ${props.iconClass} me-2`;
|
||||
};
|
||||
|
||||
return (
|
||||
<button
|
||||
className="btn text-secondary"
|
||||
onClick={props.callback}
|
||||
>
|
||||
<i className={iconClasses()} />
|
||||
{props.label}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
||||
export default IconButton
|
||||
Reference in New Issue
Block a user