import { Tabs, Text, TextInput } from '@mantine/core'; import { UseFormReturnType } from '@mantine/form'; import { IconCursorText, IconLink } from '@tabler/icons'; import { useTranslation } from 'next-i18next'; import { AppType } from '../../../../../../types/app'; import { EditAppModalTab } from '../type'; interface GeneralTabProps { form: UseFormReturnType AppType>; openTab: (tab: EditAppModalTab) => void; } export const GeneralTab = ({ form, openTab }: GeneralTabProps) => { const { t } = useTranslation(''); return ( } label="App name" description="Used for displaying the app on the dashboard" placeholder="My example app" variant="default" mb="md" withAsterisk {...form.getInputProps('name')} /> } label="App url" description={ URL that will be opened when clicking on the app. Can be overwritten using openTab('behaviour')} variant="link" span style={{ cursor: 'pointer', }} > {' '} on click URL{' '} when using external URLs to enhance security. } placeholder="https://google.com" variant="default" withAsterisk {...form.getInputProps('url')} /> ); };