add pigs to event categories, fallback to those

This commit is contained in:
2024-06-06 02:47:00 +02:00
parent 0d58eeb040
commit ffacc0a8a8
7 changed files with 105 additions and 23 deletions
+6
View File
@@ -27,6 +27,12 @@ export const PIG_NAMES = [
"peek",
];
export function randomElement(array: any[]): any | undefined {
return array.length
? array[Math.floor(Math.random() * array.length)]
: undefined;
}
const BlockFragmentDefinition = graphql(`
fragment Blocks on StreamFieldInterface {
id