Files
radicle-explorer/src/base/projects
2022-11-15 17:34:37 +01:00
..
2022-11-15 15:10:48 +01:00
2022-11-15 15:10:48 +01:00
2022-11-07 18:00:24 +01:00
2022-11-15 15:24:12 +01:00
2022-10-18 15:00:22 +02:00
2022-10-21 09:08:10 +02:00
2022-11-15 15:10:48 +01:00
2022-11-15 15:10:48 +01:00
2022-11-15 15:10:48 +01:00
2022-11-07 18:00:24 +01:00
2022-11-15 15:24:12 +01:00

<script lang="ts">
  import type * as proj from "@app/project";
  import type { ProjectRoute } from "@app/router/definitions";

  import Markdown from "@app/Markdown.svelte";

  export let content: string;
  export let getImage: (path: string) => Promise<proj.Blob>;
  export let activeRoute: ProjectRoute;

  $: hash = activeRoute.params.hash || null;
</script>

<style>
  article {
    padding: 2rem;
    width: 100%;
    background: var(--color-foreground-1);
  }
</style>

<article>
  <Markdown {content} {getImage} {hash} />
</article>