'use client'

import { Button } from '@/shared/components/ui/button'

export const FeedbackButton = () => {
  return (
    <Button
      variant='secondary'
      onClick={() => {
        if (typeof window !== 'undefined') {
          // eslint-disable-next-line @typescript-eslint/ban-ts-comment
          // @ts-ignore
          window?.BX?.LiveChat?.openLiveChat()
        }
      }}
    >
      Центр поддержки
    </Button>
  )
}
