import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import { usePlatformLayout, usePlatformClasses, PlatformSwitch } from '@/hooks/use-platform-layout';
import { Home, Users, Settings, Plus } from 'lucide-react';
/**
* Example component showing how to adapt UI for different platforms
*/
export function PlatformAdaptiveExample() {
const layout = usePlatformLayout();
const classes = usePlatformClasses();
return (
{/* Platform-specific header */}
}
desktop={
}
web={
}
/>
{/* Content that adapts to platform */}
Platform: {layout.isMobile ? 'Mobile' : layout.isDesktop ? 'Desktop' : 'Web'}
This component automatically adapts its layout and styling based on the platform.
{/* Platform-specific buttons */}
{/* Grid that adapts to screen size and platform */}
Dashboard
Team
Settings
{/* Platform-specific navigation */}
}
desktop={
}
web={
}
/>
);
}
// Mobile: Bottom navigation bar
function MobileBottomNav() {
return (
);
}
// Desktop: Top navigation bar
function DesktopTopNav() {
return (
);
}
// Web: Sticky navigation
function WebStickyNav() {
return (
);
}
function NavItem({ icon, label }: { icon: React.ReactNode; label: string }) {
return (
);
}
// Mobile-specific header
function MobileHeader() {
return (
);
}
// Desktop-specific header
function DesktopHeader() {
return (
);
}
// Web-specific header
function WebHeader() {
return (
AeThex OS
Web desktop platform
);
}