work in progress

This commit is contained in:
Artur AGH
2023-10-02 15:02:45 +02:00
parent 658dfde935
commit 55cd3f963d
14 changed files with 398 additions and 38 deletions

View File

@@ -0,0 +1,37 @@
import { Button } from "../ui/button";
import { Input } from "../ui/input";
type Props = {
handleImageUploaded: any;
handleInputChange: any;
inputText: any;
handleTextAdd: any;
};
export function Sidebar({
handleImageUploaded,
handleInputChange,
handleTextAdd,
inputText,
}: Props) {
return (
<div className="flex flex-col ">
<Input
type="file"
className="m-[2rem] w-auto "
onChange={handleImageUploaded}
/>
<div className="m-[2rem] flex max-w-md justify-between">
<Input
type="text"
placeholder="enter the text"
value={inputText}
onChange={handleInputChange}
/>
<Button className="mx-[2rem] text-xs" onClick={handleTextAdd}>
Add new Text
</Button>
</div>
</div>
);
}