Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { hapticImpact } from '@core/mobile/haptics';
import { isTauri } from '@core/util/platform';
import ArrowLeftIcon from '@icon/system/regular/arrow-left.svg';
import { useNavigate } from '@solidjs/router';
import { Button } from '@ui';
import { type ParentProps, Show } from 'solid-js';
/**
* Native webviews have no browser chrome, including on unavailable pages, and
* these routes render outside the split layout that owns the app's history.
*/
export function PublicBookingShell(props: ParentProps) {
const navigate = useNavigate();
const showBack = () => isTauri() && window.parent === window;
return (
<div class="min-h-0 flex-1 overflow-y-auto bg-page text-ink">
<Show when={showBack()}>
<header class="sticky top-0 z-10 flex bg-panel/95 px-2 pb-2 pt-[calc(var(--safe-top,0px)+0.5rem)] backdrop-blur-sm">
<Button
aria-label="Back to Macro"
tooltip="Back to Macro"
variant="ghost"
size="icon-md"
onPointerDown={() => hapticImpact('light')}
onClick={() => navigate('/', { replace: true })}
>
<ArrowLeftIcon class="size-4 touch:size-6 shrink-0 pointer-events-none" />
</Button>
</header>
</Show>
{props.children}
</div>
);
}