File size: 932 Bytes
59bd45e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import { Profile, DeviceStatus } from '../types';
import { ProfileCard } from './ProfileCard';
import { DeviceCard } from './DeviceCard';

interface MineViewProps {
  profile: Profile;
  deviceStatus: DeviceStatus;
}

export const MineView: React.FC<MineViewProps> = ({ profile, deviceStatus }) => {
  return (
    <div className="w-full h-full flex flex-col pt-12 pb-32 overflow-y-auto no-scrollbar scroll-smooth">
      <div className="w-full max-w-md mx-auto px-6">
        {/* Top Spacer for Profile Image */}
        <div className="h-4" />
        
        {/* Profile Section */}
        <ProfileCard profile={profile} />

        {/* Spacer for flow */}
        <div className="h-6" />

        {/* Device Section */}
        <DeviceCard status={deviceStatus} />

        {/* Bottom padding to ensure content isn't hidden by nav */}
        <div className="h-24" />
      </div>
    </div>
  );
};