diff --git a/app/components/ui/input.tsx b/app/components/ui/input.tsx index 43e8c91..1eae76b 100644 --- a/app/components/ui/input.tsx +++ b/app/components/ui/input.tsx @@ -4,10 +4,13 @@ import { cn } from "~/utils" import { EyeOpenIcon, EyeNoneIcon } from "@radix-ui/react-icons" export interface InputProps - extends React.InputHTMLAttributes {} + extends React.InputHTMLAttributes { + fullWidth: boolean, + leftIcon?: React.ReactNode + } const Input = React.forwardRef( - ({ className, type, ...props }, ref) => { + ({ className, type, fullWidth, leftIcon, ...props }, ref) => { const [showPassword, setShowPassword] = React.useState(false) const [mask, setMask] = React.useState(false) const toggleShowPassword = () => { @@ -15,12 +18,18 @@ const Input = React.forwardRef( setMask((mask) => !mask) } return ( -
+
+ {leftIcon && ( +
+ {leftIcon} +
+ )} +

File Manager

+ + + + + + +

Files

+
+ } + placeholder="Search files by name or CID" + className="border-ring font-bold w-full grow h-12 flex-1" + /> + + +
+ + + ); +} + +const AddIcon = ({ className }: { className?: string }) => { + return ( + + + + + + + + + + + ); +};