'use client' import { FooterBlock as FooterBlockType } from '../types' interface FooterBlockProps { block: FooterBlockType onChange: (block: FooterBlockType) => void isEditing?: boolean } export function FooterBlockEditor({ block, onChange, isEditing = true }: FooterBlockProps) { const alignClass = block.alignment === 'left' ? 'text-left' : block.alignment === 'right' ? 'text-right' : 'text-center' return (
{block.companyName}
{block.address &&{block.address}
} {block.showUnsubscribe && (e.preventDefault() : undefined} > Unsubscribe {' '}from these emails
)}