diff --git a/src/app/components/bingo.module.css b/src/app/components/bingo.module.css index b3c967f..8565b45 100644 --- a/src/app/components/bingo.module.css +++ b/src/app/components/bingo.module.css @@ -6,3 +6,9 @@ .td{ padding: 12px 16px; } + +.warning{ + font-weight: bold; + color: red; + text-align: center; +} diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx new file mode 100644 index 0000000..56c0ac3 --- /dev/null +++ b/src/app/components/bingocontroller.tsx @@ -0,0 +1,17 @@ +'use client'; + +import React from 'react' +import Bingo from './bingo.tsx' +import styles from './bingo.module.css' + +export default function BingoController(){ + const [size, setSize] = React.useState(5); + const [items, setItems] = React.useState(["Cloud", "Cyber", "Distruptive Technology", "AI", "Metaverse", "Gamification", "Web 3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Insert bullshit here] as a service"]); + const sizeError = ((items.length % size) != 0); + return( + <> + {sizeError &&
Warning: Mismatch between item count and size
} +