mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
- Replace .eslintrc.json with eslint.config.mjs - Simplify configuration using @antfu/eslint-config - Add necessary ESLint plugin dependencies - Disable overly strict style rules - Set package.json type to module for ESM support - Fix ESLint disable comment format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
596 B
TypeScript
20 lines
596 B
TypeScript
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import s from './card.module.css'
|
|
|
|
interface PropType {
|
|
children: React.ReactNode
|
|
text?: string
|
|
}
|
|
function Card({ children, text }: PropType) {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<div className={`${s.card} box-border w-full flex flex-col items-start px-4 py-3 rounded-lg border-solid border border-gray-200 cursor-pointer hover:border-primary-300`}>
|
|
<div className='text-gray-400 font-medium text-xs mb-2'>{text ?? t('app.chat.powerBy')}</div>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Card
|