diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-21 14:54:11 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-21 14:54:11 +0700 |
| commit | 83d1a1c558293e1b14c9a5847628e7661f749c66 (patch) | |
| tree | 5f083f90192df0fc2aff41e3dd1c3c84f2592352 /app/lib/camera/component/cardFoto.tsx | |
| parent | 30c5eb5776fcc60f023ad6aa51153cb375c87930 (diff) | |
initial commit
Diffstat (limited to 'app/lib/camera/component/cardFoto.tsx')
| -rw-r--r-- | app/lib/camera/component/cardFoto.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/lib/camera/component/cardFoto.tsx b/app/lib/camera/component/cardFoto.tsx new file mode 100644 index 0000000..34da216 --- /dev/null +++ b/app/lib/camera/component/cardFoto.tsx @@ -0,0 +1,27 @@ +import { Card, CardContent, Typography } from "@mui/material"; +import Image from "next/image"; +import React from "react"; +import useCameraStore from "../hooks/useCameraStore"; + +const CardFotos = () => { + const { imagePackage } = useCameraStore(); + return ( + <Card sx={{ maxWidth: 200 }}> + <Image + src={imagePackage ?? ''} + alt="Captured" + layout="fill" + objectFit="cover" + unoptimized + className="p-2" + /> + <CardContent> + <Typography gutterBottom variant="h5" component="div"> + Lizard + </Typography> + </CardContent> + </Card> + ); +} + +export default CardFotos |
