рефакторинг

This commit is contained in:
gorbenko.pavel
2026-07-29 17:08:52 +05:00
parent 46552a1381
commit df3558b63a
61 changed files with 1743 additions and 1189 deletions
@@ -29,18 +29,3 @@ export const Button: React.FC<IButtonProps> = ({
</button>
);
};
export interface IIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
icon: IconName;
danger?: boolean;
label: string;
}
export const IconButton: React.FC<IIconButtonProps> = ({ icon, danger, label, className, ...rest }) => {
const classes = [styles.iconButton, danger ? styles.danger : '', className].filter(Boolean).join(' ');
return (
<button type="button" className={classes} aria-label={label} title={label} {...rest}>
<Icon name={icon} size="sm" />
</button>
);
};