This commit is contained in:
2026-01-05 19:35:49 +01:00
parent b4b915416b
commit d9e6151ae0
92 changed files with 10964 additions and 7893 deletions

View File

@@ -0,0 +1,37 @@
import { DriverProfileTemplate } from '@/templates/DriverProfileTemplate';
import { DriverProfileViewModel } from '@/lib/view-models/DriverProfileViewModel';
interface DriverProfileStaticProps {
profileData: DriverProfileViewModel;
teamMemberships: Array<{
team: { id: string; name: string };
role: string;
joinedAt: Date;
}>;
}
export async function DriverProfileStatic({ profileData, teamMemberships }: DriverProfileStaticProps) {
return (
<DriverProfileTemplate
driverProfile={profileData}
allTeamMemberships={teamMemberships}
isLoading={false}
error={null}
onBackClick={() => {
// This will be handled by the parent page component
window.history.back();
}}
onAddFriend={() => {
// Server component - no-op for static version
console.log('Add friend - static mode');
}}
friendRequestSent={false}
activeTab="overview"
setActiveTab={() => {
// Server component - no-op for static version
console.log('Set tab - static mode');
}}
isSponsorMode={false}
/>
);
}