<script>
    import * as fn from '../functions'

    export let href = '/'
    export let text = ''
    export let target = null
    export let rel = null
</script>

<a class="link-translate" {href} {target} {rel}>
    <slot />
    <div class="text" data-text={text}>
        <span>{text}</span>
    </div>
</a>
