UNPKG

@0xsplits/splits-kit

Version:

UI Components for working with 0xSplits contracts

10 lines 849 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { ArrowTopRightOnSquareIcon } from '@heroicons/react/20/solid'; import Link from '../util/Link'; import AddressDisplay from './AddressDisplay'; var SplitHeader = function (_a) { var address = _a.address, chainId = _a.chainId, linkToApp = _a.linkToApp; return (_jsxs("div", { className: "flex w-full items-center space-x-2 overflow-hidden", children: [_jsx(AddressDisplay, { address: address }), linkToApp && (_jsx(Link, { href: "https://app.splits.org/accounts/".concat(address, "/?chainId=").concat(chainId), className: "cursor-pointer text-gray-500 transition hover:text-black focus:outline-none dark:hover:text-white", children: _jsx(ArrowTopRightOnSquareIcon, { className: "h-4 w-4" }) }))] })); }; export default SplitHeader; //# sourceMappingURL=SplitHeader.js.map