forked from cerc-io/snowballtools-base
* Implement basic layout to create new project * Use dummy datas to populate the cards * Format repository updated time using luxon * Move repository list to components folder --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
21 lines
434 B
TypeScript
21 lines
434 B
TypeScript
import React from 'react';
|
|
|
|
interface TemplateDetails {
|
|
framework: string;
|
|
icon: string;
|
|
}
|
|
interface TemplateCardProps {
|
|
framework: TemplateDetails;
|
|
}
|
|
|
|
const TemplateCard: React.FC<TemplateCardProps> = ({ framework }) => {
|
|
return (
|
|
<div className="bg-gray-200 text-gray-500 text-xs border-gray-200 rounded-lg shadow p-4">
|
|
{framework.icon}
|
|
{framework.framework}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TemplateCard;
|