import { clsx } from 'clsx' import { onMount, Show } from 'solid-js' import { Icon } from '../Icon' import styles from './SocialNetworkInput.module.scss' type Props = { class?: string network?: string link?: string isExist: boolean handleInput: (value: string) => void handleDelete?: () => void slug?: string autofocus?: boolean } export const SocialNetworkInput = (props: Props) => { const inputRef: { current: HTMLInputElement } = { current: null } onMount(() => { if (props.autofocus) { inputRef.current.focus() } }) return (