diff --git a/src/components/core/Button.tsx b/src/components/core/Button.tsx index c667047774f322c6419e44ecc37fe24e0a9886b3..dab3b93fb17bebf7e8a90888889359c5b49d24a5 100644 --- a/src/components/core/Button.tsx +++ b/src/components/core/Button.tsx @@ -9,10 +9,19 @@ interface Props { className?: string style?: "outline" | undefined color?: "primary" | "secondary" | undefined + options?: any } const Button = (props: Props) => { - const { children, name = "", url = "#", className, style, color } = props + const { + children, + name = "", + url = "#", + className, + style, + color, + options, + } = props const isPrimary = color === "primary" const isSecondary = color === "secondary" @@ -26,7 +35,8 @@ const Button = (props: Props) => { isPrimary && "btn-primary", isSecondary && "btn-secondary", isOutline && "btn-outline", - className + className, + options?.action )} > {name}