File size: 534 Bytes
0f0d9a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { ReactNode } from 'react';

type Props = {
  children: ReactNode;
  tone?: 'cream' | 'dark';
};

export function MobileShell({ children, tone = 'cream' }: Props) {
  const isDark = tone === 'dark';

  return (
    <div className={isDark ? 'min-h-dvh bg-[#0e0d0b]' : 'min-h-dvh bg-cream-deep'}>
      <div
        className={[
          'mx-auto min-h-dvh w-full max-w-[430px] overflow-hidden',
          isDark ? 'bg-[#0e0d0b]' : 'bg-cream',
        ].join(' ')}
      >
        {children}
      </div>
    </div>
  );
}