import React from 'react'; import toast from 'react-hot-toast'; import { IconButton, Typography } from '@material-tailwind/react'; import { Link } from 'react-router-dom'; interface TemplateDetails { id: string; name: string; icon: string; } interface TemplateCardProps { template: TemplateDetails; isGitAuth: boolean; } const CardDetails = ({ template }: { template: TemplateDetails }) => { return (
{template.icon} {template.name}
{'>'}
); }; const TemplateCard: React.FC = ({ template, isGitAuth }) => { return isGitAuth ? ( ) : ( toast.error('Connect Git account to start with a template') } > ); }; export default TemplateCard;