import React from "react";
import CookieBannerActionProps from "./CookieBannerAction.types";
import Button from "../Button";
export const CookieBannerAction = ({
children,
type,
href,
name,
value,
classes,
...attributes
}: CookieBannerActionProps) => {
return (
<>
{ href && (
<>
{ type === 'button' && (
)}
{ type !== 'button' && (
{ children }
)}
>
)}
{ !href && (
)}
>
);
};
export default CookieBannerAction;