import { UploadDropzone } from '@/components/shared/UploadDropzone'; import { TemplateProps } from '@/lib/contracts/components/ComponentContracts'; import { ViewData } from '@/lib/contracts/view-data/ViewData'; import { routes } from '@/lib/routing/RouteConfig'; import { Button } from '@/ui/Button'; import { Card } from '@/ui/Card'; import { Container } from '@/ui/Container'; import { Heading } from '@/ui/Heading'; import { MediaMetaPanel, mapMediaMetadata } from '@/ui/MediaMetaPanel'; import { MediaPreviewCard } from '@/ui/MediaPreviewCard'; import { Text } from '@/ui/Text'; import { Box } from '@/ui/Box'; import Link from 'next/link'; interface ProfileLiveryUploadTemplateProps extends TemplateProps { selectedFile: File | null; previewUrl: string | null; isUploading: boolean; onFilesSelected: (files: File[]) => void; onUpload: () => void; } export function ProfileLiveryUploadTemplate({ selectedFile, previewUrl, isUploading, onFilesSelected, onUpload, }: ProfileLiveryUploadTemplateProps) { return ( Upload livery Upload your custom car livery. Supported formats: .png, .jpg, .tga {previewUrl ? ( ) : ( Select a file to see preview and details )} ); }