forked from hangshuo652/aurak
0a9588abb7
- Add pagination support to findAll (page, limit query params) - Add findByTemplateId method to service - Add GET /by-template/:templateId endpoint to controller - Service already includes CRUD for QuestionBank and QuestionBankItem
38 lines
891 B
TypeScript
38 lines
891 B
TypeScript
import React from 'react';
|
|
|
|
interface CardProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const Card: React.FC<CardProps> = ({ children, className = '' }) => {
|
|
return (
|
|
<div className={`bg-white rounded-lg border border-slate-200 shadow-sm ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export const CardHeader: React.FC<CardProps> = ({ children, className = '' }) => {
|
|
return (
|
|
<div className={`p-4 border-b border-slate-100 ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export const CardTitle: React.FC<CardProps> = ({ children, className = '' }) => {
|
|
return (
|
|
<h3 className={`text-lg font-semibold text-slate-800 ${className}`}>
|
|
{children}
|
|
</h3>
|
|
);
|
|
};
|
|
|
|
export const CardContent: React.FC<CardProps> = ({ children, className = '' }) => {
|
|
return (
|
|
<div className={`p-4 ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}; |