Disable sharing for templates

This commit is contained in:
1ilit 2024-09-01 20:40:48 +04:00
parent 6eddfd983f
commit 877ec72e03

View File

@ -1363,15 +1363,17 @@ export default function ControlPanel({
{layout.header && ( {layout.header && (
<div className="flex justify-between items-center me-7"> <div className="flex justify-between items-center me-7">
{header()} {header()}
<Button {window.name.split(" ")[0] !== "t" && (
type="primary" <Button
className="text-base me-2 pe-6 ps-5 py-[18px] rounded-md" type="primary"
size="default" className="text-base me-2 pe-6 ps-5 py-[18px] rounded-md"
icon={<IconShareStroked />} size="default"
onClick={() => setModal(MODAL.SHARE)} icon={<IconShareStroked />}
> onClick={() => setModal(MODAL.SHARE)}
{t("share")} >
</Button> {t("share")}
</Button>
)}
</div> </div>
)} )}
{layout.toolbar && toolbar()} {layout.toolbar && toolbar()}