|
|
@@ -5,11 +5,13 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
|
|
|
import { Card, CardContent } from '@/client/components/ui/card';
|
|
|
import { toast } from 'sonner';
|
|
|
import { fileClient } from '@/client/api';
|
|
|
-import type { FileType } from '@/server/modules/files/file.schema';
|
|
|
import MinioUploader from '@/client/admin-shadcn/components/MinioUploader';
|
|
|
import { Check, Upload, Eye, X } from 'lucide-react';
|
|
|
import { Avatar, AvatarFallback, AvatarImage } from '@/client/components/ui/avatar';
|
|
|
import { cn } from '@/client/lib/utils';
|
|
|
+import type { InferResponseType } from 'hono/client';
|
|
|
+
|
|
|
+type FileType = InferResponseType<typeof fileClient.$get, 200>['data'][0]
|
|
|
|
|
|
interface AvatarSelectorProps {
|
|
|
value?: number;
|