feat: Added buzzwords param to BingoController
This commit is contained in:
parent
2e857e0d72
commit
72014130bf
@ -14,9 +14,9 @@ function FisherYatesShuffle(array:string[]):string[]{
|
||||
return array;
|
||||
}
|
||||
|
||||
export default function BingoController(){
|
||||
export default function BingoController({buzzwords} : {buzzwords: string[]}){
|
||||
const [size, setSize] = React.useState(5);
|
||||
const buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"];
|
||||
if(buzzwords == undefined || buzzwords.length < 1) buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"];
|
||||
const [items, setItems] = React.useState(buzzwords);
|
||||
const sizeError = (items.length < size);
|
||||
return(
|
||||
|
Loading…
Reference in New Issue
Block a user