mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-23 15:07:43 +01:00
18 lines
512 B
TypeScript
18 lines
512 B
TypeScript
import { Icon, Icons } from "@/components/Icon";
|
|
import { ButtonControlProps, ButtonControl } from "./ButtonControl";
|
|
|
|
export interface IconButtonProps extends ButtonControlProps {
|
|
icon: Icons;
|
|
}
|
|
|
|
export function IconButton(props: IconButtonProps) {
|
|
return (
|
|
<ButtonControl
|
|
{...props}
|
|
className="flex items-center space-x-2 rounded-full bg-bink-200 px-4 py-2 text-white hover:bg-bink-300"
|
|
>
|
|
<Icon icon={props.icon} />
|
|
<span>{props.children}</span>
|
|
</ButtonControl>
|
|
);
|
|
}
|