feat: add My Uploads listing with card and table views

This commit is contained in:
2026-06-18 21:22:44 +05:30
parent dff9e2222f
commit a18fff4d6f
28 changed files with 1060 additions and 127 deletions

View File

@@ -1,5 +1,7 @@
'use client';
import type { RefObject } from 'react';
import { FormField, SelectPopover } from '@/components/form';
const options = [
@@ -14,12 +16,14 @@ interface UploadSettingsSectionProps {
value: string;
onValueChange: (value: string) => void;
disabled?: boolean;
portalContainer?: RefObject<HTMLDivElement | null>;
}
export function UploadSettingsSection({
value,
onValueChange,
disabled = false,
portalContainer,
}: UploadSettingsSectionProps) {
return (
<section className="space-y-3">
@@ -33,12 +37,13 @@ export function UploadSettingsSection({
</div>
<div className="grid grid-cols-1 gap-3 md:grid-cols-2">
<FormField id="detection-method" label="Detection Method">
<FormField id="detection-mode" label="Detection Mode">
<SelectPopover
options={options}
value={value}
onValueChange={onValueChange}
disabled={disabled}
portalContainer={portalContainer}
placeholder="Select method"
searchPlaceholder="Search methods"
emptyMessage="No methods found."