Files
radicle-explorer/src/views/projects
2023-03-07 13:30:40 +01:00
..
2023-02-01 12:36:09 +01:00
2023-02-01 12:36:09 +01:00

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

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

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

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

<style>
  article {
    padding: 2rem;
    width: 100%;
    background: var(--color-background-1);
    border-bottom-left-radius: var(--border-radius-small);
    border-bottom-right-radius: var(--border-radius-small);
  }
</style>

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