import React, { useRef, useState } from 'react'
import GridItem from '../Grid/GridItem'
import ItemCard from '../Card/ItemCard'
import ButtonWrapper from '../Buttons/ButtonWrapper'
import Button from '../Buttons/Button'
import ImportSingleTemplate from '../Buttons/ImportSingleTemplate'
import TemplatePreviewModal from '../Modal/TemplatePreviewModal'
import styles from './TemplateItemCardWrapper.module.scss'
const TemplateItemCardWrapper = ({ template }) => {
const [isActivationModelOpen, setOpenActivationModal] = useState(false)
const cardRef = useRef(null)
const templateId = template.id
const templateKitId = template.template_kit_id
const templateName = template.name
const templateScreenShotUrl = template.screenshot_url
const templateExistingImports = template.imports
const [blockImport, setBlockImport] = useState(template.unmet_requirements && template.unmet_requirements.length > 0)
const description = template.metadata.additional_template_information ? template.metadata.additional_template_information.join(' ') : ''
return (
{template.unmet_requirements.join(' ')}