芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/envato-elements/src/js/react/components/Card/KitCard.jsx
import React, { useState } from 'react' import { Link, useRouteMatch } from 'react-router-dom' import ItemCard from './ItemCard' import GridItem from '../Grid/GridItem' import DeleteTemplateKit from '../Buttons/DeleteTemplateKit' import ViewInstalledKitButton from '../Buttons/InternalLinkButton' import ButtonWrapper from '../Buttons/ButtonWrapper' import styles from './KitCard.module.scss' const KitCard = ({ item }) => { const { url } = useRouteMatch() const [kitDeleted, setKitDeleted] = useState(false) if (kitDeleted) { return null } return (
)} Buttons={(
{ setKitDeleted(true) }} />
)} title={item.title} description={`Contains ${item.template_count} templates`} />
) } export default KitCard