<script lang="ts">
	export let contentType: string;
	export let filename: string;
	export let slug: string;

    let ext = filename.split('.').pop();
</script>

<img src="/s/{slug}.{ext}" alt="shared" /> 

<style>
    img {
        max-width: 100%;
        height: auto;
    }
</style>
