import { PageWrap } from '../../_shared/PageWrap' import { t } from '../../../utils/intl' import type { PageProps } from '../../types' import { Icon } from '../../_shared/Icon' import ProfileSettingsNavigation from '../../Discours/ProfileSettingsNavigation' import { For, createSignal, Show } from 'solid-js' import { clsx } from 'clsx' import styles from './Settings.module.scss' import { useProfileForm } from '../../../context/profile' export const ProfileSettingsPage = (props: PageProps) => { const [addLinkForm, setAddLinkForm] = createSignal(false) const { form, updateFormField, submit } = useProfileForm() const handleChangeSocial = (value) => { updateFormField('links', value) setAddLinkForm(false) } const handleSubmit = (event: Event): void => { event.preventDefault() submit(form) } return (

{t('Profile settings')}

{t('Here you can customize your profile the way you want.')}

{t('Userpic')}

{form.name}

{t('Name')}

{t( 'Your name will appear on your profile page and as your signature in publications, comments and responses.' )}

updateFormField('name', event.currentTarget.value)} value={form.name} />

{t('Address on Discourse')}

updateFormField('slug', event.currentTarget.value)} value={form.slug} class="nolabel" />

{t('Sorry, this address is already taken, please choose another one.')}

{/*Нет реализации полей на бэке*/} {/*

{t('Introduce')}

*/} {/*
*/} {/*