nextcloud/apps/files_sharing/src/components/SidebarTabExternal/SidebarTabExternalSectionLegacy.vue
Ferdinand Thiessen 44917b5ef1
chore(legacy): fix @stylistic/exp-list-style ESLint rule
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-26 00:03:51 +01:00

38 lines
753 B
Vue

<!--
- SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div class="sharing-tab-external-section-legacy">
<component :is="component" :file-info="fileInfo" />
</div>
</template>
<script lang="ts" setup>
import {
type Component,
type PropType,
computed,
} from 'vue'
const props = defineProps({
fileInfo: {
type: Object,
required: true,
},
sectionCallback: {
type: Function as PropType<(el: HTMLElement | undefined, fileInfo: unknown) => Component>,
required: true,
},
})
const component = computed(() => props.sectionCallback(undefined, props.fileInfo))
</script>
<style scoped>
.sharing-tab-external-section-legacy {
width: 100%;
}
</style>