import { cn } from '@/lib/utils'

interface DividerBlockProps {
  block: Record<string, unknown>
}

export function DividerBlock({ block }: DividerBlockProps) {
  const style = (block.style as string) || 'line'

  return (
    <div className="py-ws-s">
      <div
        className={cn(
          'max-w-[1200px] mx-auto px-4',
          style === 'space' ? 'border-none' : 'border-t border-light'
        )}
      />
    </div>
  )
}
