<script lang="ts">
	export let href;

	let target = href.includes('https://') || href.includes('http://') ? '_blank' : '';
</script>

<a {href} {target}><slot /></a>
