import { memo } from 'react'
import { useNavigate } from 'react-router-dom'
import { Eye, ArrowLeft } from 'lucide-react'
import { Button } from '../ui/Button'
import { Badge } from '../ui/Badge'
export const TemplateCard = memo(({ template }) => {
const navigate = useNavigate()
return (
{template.previewUrl ? (

) : (
{template.title?.charAt(0)}
)}
{template.title}
{template.category}
${template.price}
{template.tags?.slice(0, 3).map(tag => (
{tag}
))}
)
})