feat: implement IconButton component and update SSOLogin to use it

This commit is contained in:
Maximilian Liebmann 2025-05-09 16:33:35 +02:00
parent 820c84cd8c
commit b81210d2ea
4 changed files with 70 additions and 51 deletions

View file

@ -0,0 +1,20 @@
import { Button } from '@/components/ui/button';
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
export function IconButton({
icon,
children,
...props
}: {
icon: IconProp;
children: React.ReactNode;
} & React.ComponentProps<typeof Button>) {
return (
<Button type='button' variant='default' {...props}>
<FontAwesomeIcon icon={icon} className='mr-2' />
{children}
</Button>
);
}