Files
console/src/lib/components/apiEndpoint.svelte
T
Harsh Mahajan 8f0376e01a Add ApiEndpoint and API key components to key pages
- Show copy buttons in API key creation notification
- Replace regional endpoint references with API endpoint
2025-09-26 11:52:38 +05:30

16 lines
560 B
Svelte

<script lang="ts">
import { Copy } from '.';
import { Icon, Tag } from '@appwrite.io/pink-svelte';
import { IconDuplicate } from '@appwrite.io/pink-icons-svelte';
import { getProjectEndpoint } from '$lib/helpers/project';
</script>
<Copy value={getProjectEndpoint()} copyText="Copy endpoint">
<Tag size="xs" variant="code">
<Icon icon={IconDuplicate} size="s" slot="start" />
<span style:white-space="nowrap" style:overflow="hidden" style:word-break="break-all">
API endpoint
</span>
</Tag>
</Copy>