From a34ab29876352c4193f3cf2bcc0b992797bea4f2 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 9 Aug 2024 00:57:45 -0400 Subject: [PATCH] Add component for sidebar --- source/src/components/CreatorInSidebar.astro | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 source/src/components/CreatorInSidebar.astro diff --git a/source/src/components/CreatorInSidebar.astro b/source/src/components/CreatorInSidebar.astro new file mode 100755 index 0000000..d30b535 --- /dev/null +++ b/source/src/components/CreatorInSidebar.astro @@ -0,0 +1,44 @@ +--- +// Properties +const { + ChannelId +} = Astro.props + +// Configuration +import { DEFAULT_MEDIA_DATA_PROXY, DEFAULT_IMAGE_PROXY} from '@utils/GetConfig' + +// Fetch +const channel = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/channels/" + ChannelId).then((response) => response.json()); +--- + + + +

{channel.author}

+
+ + \ No newline at end of file