Enhance Alerts component with dynamic colored notes using AlertColors from config for better visibility and consistency (#229)

This commit is contained in:
Bram Suurd
2024-11-13 22:33:45 +01:00
committed by GitHub
parent 2c07496638
commit 612f41afdd
3 changed files with 24 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import { AlertColors } from "@/config/siteConfig";
export type Script = {
name: string;
slug: string;
@@ -29,7 +31,7 @@ export type Script = {
notes: [
{
text: string;
type: string;
type: keyof typeof AlertColors;
},
];
};