diff --git a/app/components/ItemPicker.tsx b/app/components/ItemPicker.tsx index 90eae68411..a0949916ec 100644 --- a/app/components/ItemPicker.tsx +++ b/app/components/ItemPicker.tsx @@ -1,16 +1,31 @@ +import { twMerge } from "tailwind-merge"; import { H4 } from "."; + interface ItemPickerProps extends React.ImgHTMLAttributes { label: string + selected: boolean; + onSelected : (val:string)=>void; } export const ItemPicker = ({ label, + selected = false, + onSelected, ...imgProps }:ItemPickerProps) => { + + const handleSelected = ()=>{ + onSelected(label); + }; + return ( -
+
+

{label}

) diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index f9ca528ab9..3b069b39ee 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -7,11 +7,18 @@ export const Textarea = ({ }:TextareaHTMLAttributes) => { return(