import React from "react"; import { Link } from "react-router-dom"; import getExternalLinkProps from "../../util/getExternalLinkProps"; import { Button } from "../../components/Button"; import { ToastAction as Action } from "./types"; interface ToastActionProps { action: Action; } const ToastAction: React.FC = ({ action }) => { if (action.url.startsWith("http")) { return ( ); } return ( ); }; export default ToastAction;