<script>
  import CopyInput from "components/common/inputs/CopyInput.svelte"

  export let value

  function fullWebhookURL(uri) {
    if (!uri) {
      return ""
    }

    return `${window.location.origin}/${uri}`
  }
</script>

<CopyInput {value} copyValue={fullWebhookURL(value)} />
