Files
klz-cables.com/.pnpm-store/v10/files/99/03aa841c1d29f885c18180a3a75815b3874ac57145d2c0098a8177db9c6f53571fc95897cf36b3b4293be426f1988d89806c3e764e2590226867470d73ed70
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

41 lines
1.0 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { ExternalLinkIcon } from '../../icons/ExternalLink/index.js';
import './index.scss';
import { usePreviewURL } from '../../providers/LivePreview/context.js';
import { useTranslation } from '../../providers/Translation/index.js';
const baseClass = 'preview-btn';
export function PreviewButton(props) {
const $ = _c(3);
const {
previewURL
} = usePreviewURL();
const {
t
} = useTranslation();
if (!previewURL) {
return null;
}
let t0;
if ($[0] !== previewURL || $[1] !== t) {
t0 = _jsx("a", {
"aria-label": t("version:preview"),
className: baseClass,
href: previewURL,
id: "preview-button",
target: "_blank",
title: t("version:preview"),
children: _jsx(ExternalLinkIcon, {})
});
$[0] = previewURL;
$[1] = t;
$[2] = t0;
} else {
t0 = $[2];
}
return t0;
}
//# sourceMappingURL=index.js.map