import { Button } from '@/shared/components/ui/button'
import { FieldGroup, FieldSet, FieldLegend, FieldDescription, Field, FieldContent, FieldLabel } from '@/shared/components/ui/field'
import { Switch } from '@/shared/components/ui/switch'
import { MailIcon, Grid2X2PlusIcon, NewspaperIcon, SaveIcon } from 'lucide-react'

export const ChangeNotificationsForm = () => {
  return (
    <form className='space-y-8'>
      <FieldGroup>
        <FieldSet>
          <FieldLegend variant='label'>
            Способы уведомлений
          </FieldLegend>
          <FieldDescription>
            Выберите, как вы хотите получать уведомления
          </FieldDescription>
          <FieldGroup className='gap-4'>
            <Field orientation='horizontal'>
              <MailIcon />
              <FieldContent>
                <FieldLabel htmlFor='email'>Почта</FieldLabel>
                <FieldDescription>
                  Получайте уведомления на почту, которую вы указили в аккаунте
                </FieldDescription>
              </FieldContent>
              <Switch id='email' />
            </Field>
          </FieldGroup>
        </FieldSet>
      </FieldGroup>
      <FieldGroup>
        <FieldSet>
          <FieldLegend variant='label'>
            Типы уведомлений
          </FieldLegend>
          <FieldDescription>
            Выберите, какие уведомления вы хотите получать
          </FieldDescription>
          <FieldGroup className='gap-4'>
            <Field orientation='horizontal'>
              <Grid2X2PlusIcon />
              <FieldContent>
                <FieldLabel htmlFor='integrations'>Новые интеграции для сайтов</FieldLabel>
                <FieldDescription>
                  Будьте в курсе, когда появляются новые интеграции для ваших сайтов
                </FieldDescription>
              </FieldContent>
              <Switch id='integrations' />
            </Field>
            <Field orientation='horizontal'>
              <NewspaperIcon />
              <FieldContent>
                <FieldLabel htmlFor='news'>Новости в Korzilla</FieldLabel>
                <FieldDescription>
                  Первыми узнавайте о новостях компании
                </FieldDescription>
              </FieldContent>
              <Switch id='news' />
            </Field>
            <div className='w-full flex'>
              <Button className='ml-auto'>
                Сохранить
                <SaveIcon />
              </Button>
            </div>
          </FieldGroup>
        </FieldSet>
      </FieldGroup>
    </form>
  )
}