kreirane komponente

This commit is contained in:
2024-01-04 10:30:43 +01:00
parent e1a225b91b
commit b653ce40bc
11 changed files with 191 additions and 99 deletions

10
app/ui/BillBadge.tsx Normal file
View File

@@ -0,0 +1,10 @@
import { FC } from "react"
import { Bill } from "../lib/db-types"
export interface BillBadgeProps {
bill: Bill,
// onClick:()=>void,
};
export const BillBadge:FC<BillBadgeProps> = ({bill: { name, paid }}) =>
<div className={`badge badge-lg badge-${paid?"success":"neutral"} cursor-pointer`}>{name}</div>