diff --git a/src/components/suggestions/NewSuggestionForm.tsx b/src/components/suggestions/NewSuggestionForm.tsx new file mode 100644 index 0000000..0c356cd --- /dev/null +++ b/src/components/suggestions/NewSuggestionForm.tsx @@ -0,0 +1,51 @@ +import React from 'react'; +import { Card } from '@/components/ui/card'; +import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; + +interface NewSuggestionFormProps { + newSuggestion: { + title: string; + description: string; + }; + onCancel: () => void; + onSubmit: () => void; + onChange: (field: 'title' | 'description', value: string) => void; +} + +export function NewSuggestionForm({ newSuggestion, onCancel, onSubmit, onChange }: NewSuggestionFormProps) { + return ( + +
+ onChange('title', e.target.value)} + className="border-2 focus:border-[#FF9633] transition-all duration-200 rounded-xl" + /> +