import React from 'react';
import Button from '../../../Button';
import TextButton from '../../../TextButton';
import { dataHooks } from '../../Notification.constants';
import { classes } from '../../Notification.st.css.js';
const ActionButton = props => {
    const { children } = props;
    if (props.type === 'textLink') {
        return (React.createElement(TextButton, { className: classes.textLink, underline: "always", skin: "light", as: "a", href: props.link, target: props.target ?? '_self', dataHook: dataHooks.notificationCtaButton, onClick: props.onClick }, children));
    }
    return (React.createElement(Button, { className: classes.button, type: "button", size: "small", skin: "transparent", dataHook: dataHooks.notificationCtaButton, onClick: props.onClick }, children));
};
ActionButton.displayName = 'Notification.ActionButton';
export default ActionButton;
//# sourceMappingURL=ActionButton.js.map