We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6767e0 commit 5d2594bCopy full SHA for 5d2594b
src/components/CustomAside.astro
@@ -14,14 +14,20 @@ const icons = {
14
danger: 'error',
15
thanks: 'heart',
16
} as const;
17
+const labels = {
18
+ note: 'Note',
19
+ tip: 'Tip',
20
+ caution: 'Caution',
21
+ danger: 'Danger',
22
+ thanks: 'Thank you!',
23
+} as const;
24
25
interface Props {
26
type?: (typeof asideVariants)[number];
27
title?: string;
- icon?: string;
28
}
29
-let { type = 'note', title, icon } = Astro.props;
30
+let { type = 'note', title } = Astro.props;
31
32
if (!asideVariants.includes(type)) {
33
throw new AstroError(
@@ -32,7 +38,7 @@ if (!asideVariants.includes(type)) {
38
39
34
40
if (!title) {
35
- title = Astro.locals.t(`aside.${type}`);
41
+ title = labels[type];
36
42
37
43
---
44
0 commit comments