"use client"; import { memo } from "react"; import InputLabel from "../../utility/InputLabel"; import type { UploadViewProps } from "./Upload.types"; function UploadView({ active = true, label, showHelpIcon = true, onClick, className = "", }: UploadViewProps) { const isActive = active; // Button styles based on active state const buttonBgClass = isActive ? "bg-[var(--color-surface-invert-primary,white)]" : "bg-[var(--color-surface-default-secondary,#141414)]"; const buttonTextColor = isActive ? "text-[color:var(--color-content-invert-primary,black)]" : "text-[color:var(--color-content-invert-tertiary,#2d2d2d)]"; // Description text color based on active state const descriptionTextColor = isActive ? "text-[color:var(--color-content-default-primary,white)]" : "text-[color:var(--color-content-default-tertiary,#b4b4b4)]"; // Icon color based on active state const iconColor = isActive ? "text-[color:var(--color-content-invert-primary,black)]" : "text-[color:var(--color-content-invert-tertiary,#2d2d2d)]"; return (
{/* Label using InputLabel component */} {label && ( )} {/* Upload container */}
{/* Upload button */} {/* Description text */}

Add images, PDFs, and other files to the policy

); } UploadView.displayName = "UploadView"; export default memo(UploadView);