123456789101112131415161718192021222324 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { createSection } from '@formkit/inputs'
- import { markRaw } from 'vue'
- import FormFieldLink from '#shared/components/Form/FormFieldLink.vue'
- import type { FormKitSchemaNode } from '@formkit/core'
- export const link = createSection(
- 'link',
- () =>
- ({
- $cmp: markRaw(FormFieldLink),
- if: '$link',
- props: {
- id: '$id',
- link: '$link',
- linkIcon: '$linkIcon',
- linkLabel: '$linkLabel',
- onLinkClick: '$onLinkClick',
- },
- }) as unknown as FormKitSchemaNode,
- )
|