Skip to content
Source
Sign inSign up
fuko/trytanstackdb-v2
Open History to see the last commit

page-screen.tsx

13 lines426 Bytes

1import type { ReactNode } from "react";
2​
3import { BackLink, IosScreen, LargeTitle } from "./ui";
4​
5/** A pushed iPhone screen for pages that aren't notes (settings, analytics). */
6export function IosPageScreen({ title, children }: { title: string; children: ReactNode }) {
7 return (
8 <IosScreen leading={<BackLink to="/" aria-label="Folders" />}>
9 <LargeTitle title={title} />
10 {children}
11 </IosScreen>
12 );