feat(auth): add separate default button component
This commit is contained in:
14
src/features/auth/ui/DefaultButton/DefaultButton.tsx
Normal file
14
src/features/auth/ui/DefaultButton/DefaultButton.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { ButtonHTMLAttributes } from "react";
|
||||
|
||||
export type ButtonAttributes = ButtonHTMLAttributes<HTMLButtonElement>;
|
||||
|
||||
export function DefaultButtonComponent({
|
||||
disabled,
|
||||
children,
|
||||
}: ButtonAttributes) {
|
||||
return (
|
||||
<button type="submit" disabled={disabled}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user