'use client' import { WebsiteContent, HeroContent } from '@/lib/content-types' interface HeroEditorProps { content: WebsiteContent isRTL: boolean t: (key: string) => string updateHero: (field: keyof HeroContent, value: string) => void } export default function HeroEditor({ content, isRTL, t, updateHero }: HeroEditorProps) { const dir = isRTL ? 'rtl' : 'ltr' return (

{t('admin_tab_hero')} Section

updateHero('badge', e.target.value)} className="w-full px-3 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500" dir={dir} />
updateHero('title', e.target.value)} className="w-full px-3 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500" dir={dir} />
updateHero('titleHighlight1', e.target.value)} className="w-full px-3 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500" dir={dir} />
updateHero('titleHighlight2', e.target.value)} className="w-full px-3 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500" dir={dir} />