import { useWizard } from '@/components/wizard' import { Currency } from '@repo/ui/components/currency' import { Button } from '@repo/ui/components/ui/button' import { Separator } from '@repo/ui/components/ui/separator' import { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '@repo/ui/components/ui/table' type ReviewProps = { state: any } export function Review({ state }: ReviewProps) { const wizard = useWizard() // console.log(state) return ( <> Curso Quantidade Valor unit. Total {state?.cart?.items?.map(({ course, quantity }, index) => { return ( {course.name} {quantity} {course.unit_price} {course.unit_price * quantity} ) })} Subtotal .. Descontos .. Total ..
) }