feat: advanced PSAs

This commit is contained in:
TrèsAbhi committed 2023-11-14 13:42:15 -06:00
1 parent ef9f3bd361
commit 02a03b4d68
4 files changed
+87 -12

No files matched your search

+21 -5
View File
@@ -1,13 +1,29 @@
export interface PSAData {
title: string;
description: string;
}
export type PSAData = {
secret?: boolean;
links?: {
title: string;
url: string;
}[];
} & (
| {
type: 'image';
image: string;
title?: string;
}
| {
type: 'embed';
title: string;
description: string;
}
);
export interface PSA {
data: PSAData | null;
}
export const psa: PSA = { data: null };
export const psa: PSA = {
data: null,
};
fetch(
'https://gist.githubusercontent.com/tresabhi/ed4b136f08856e615212e573aabe1968/raw',