Create Icon Button component

This commit is contained in:
RadoslavDimchev 2023-07-22 13:13:55 +03:00
parent b18d6e4e9c
commit f4c3bfbe65
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import { Icon } from "../Icon/Icon";
import { ReactButton } from "../ReactButton";
const IconButton = ({ icon, text, ...props }) => {
return (
<ReactButton {...props} icon={<Icon source={icon} />}>
{text}
</ReactButton>
);
};
export { IconButton };

View File

@ -0,0 +1 @@
export { IconButton } from "./IconButton";