From 38da06643c1bd034a4d518f79a793373f25ea0ff Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Thu, 3 Apr 2025 14:57:24 +0300 Subject: [PATCH] feat: button styles --- src/components/ui/Button.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx index 0b5303e..9663921 100644 --- a/src/components/ui/Button.tsx +++ b/src/components/ui/Button.tsx @@ -11,10 +11,15 @@ const button = tv({ }, }); -const Button: FunctionComponent<{ onClick: () => void }> = (props) => { +interface ButtonProps { + color?: "primary" | "secondary"; + onClick: () => void; +} + +const Button: FunctionComponent = ({ children, onClick, color = "primary" }) => { return ( - ); };