Files
hoanghapc_nextJs/src/components/product/detail/summary/index.tsx

27 lines
526 B
TypeScript
Raw Normal View History

2026-01-28 17:26:02 +07:00
'use client';
2026-01-30 17:09:41 +07:00
import { useEffect, useState } from 'react'
2026-02-12 17:14:04 +07:00
import { renderSummary } from "@/lib/utils"
2026-01-28 17:26:02 +07:00
export default function ProductSummary({ item }: any) {
2026-01-30 17:09:41 +07:00
const [mounted, setMounted] = useState(false)
useEffect(() => {
setMounted(true)
}, [])
if (!mounted) return null
2026-01-28 17:26:02 +07:00
return (
<div className="mb-3 pd-summary-group">
<p className="leading-6 mb-2 text-16 font-600"> Thông số sản phẩm </p>
<div> {renderSummary(item)}</div>
</div>
)
}
2026-02-12 17:14:04 +07:00