import { Card } from '@/components/ui/card'
import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
import { SystemSettings } from '@/types/system-params'

interface CopyrightInfoCardProps {
  settings: SystemSettings
  onSettingsChange: (updates: Partial<SystemSettings>) => void
}

export function CopyrightInfoCard({ settings, onSettingsChange }: CopyrightInfoCardProps) {
  return (
    <Card className="p-6">
      <h3 className="mb-4">版权信息</h3>
      <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
        <div>
          <Label>ICP备案号</Label>
          <Input
            value={settings.icp || ''}
            onChange={(e) => onSettingsChange({ icp: e.target.value })}
            placeholder="京ICP备12345678号"
          />
        </div>
        <div>
          <Label>版权声明</Label>
          <Input
            value={settings.copyright || ''}
            onChange={(e) => onSettingsChange({ copyright: e.target.value })}
            placeholder="© 2024 公司名称 版权所有"
          />
        </div>
      </div>
    </Card>
  )
}