diff --git a/app/components/ui/phone-frame.tsx b/app/components/ui/phone-frame.tsx new file mode 100644 index 0000000..1789c46 --- /dev/null +++ b/app/components/ui/phone-frame.tsx @@ -0,0 +1,35 @@ +import type { ReactNode } from 'react'; +import { Text } from '~/components/ui/text'; +import { cn } from '~/lib/utils'; + +interface PhoneFrameProps { + // light: the customer AR page; dark: a camera view, with white status bar and home indicator + tone?: 'light' | 'dark'; + className?: string; + children: ReactNode; +} + +// A phone outline with a status bar, for previewing the customer view +export function PhoneFrame({ tone = 'light', className, children }: PhoneFrameProps) { + const dark = tone === 'dark'; + return ( +
+
+ + {children} +
+
+ ); +}