import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
import { Component } from 'preact';
export class Icon extends Component {
    render(props) {
        return _jsx("i", { class: "material-icons-round md-36", children: props.name });
    }
}
export class Link extends Component {
    render(props) {
        return (_jsxs("a", { rel: "noopener", target: "_blank", href: props.href, style: "display:flex;", "aria-label": props.ariaLabel, children: [props.children, props.icon ? _jsx(Icon, { name: props.icon }) : undefined] }));
    }
}
//# sourceMappingURL=link.js.map