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

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

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