Skip to content

Commit 26c70b7

Browse files
refactor(utils): add longer text for demos to simulate more real world values
1 parent 10fee3d commit 26c70b7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export function demoGetTextValue(value: string): string {
2+
const texts: Record<string, string> = {
3+
"0": "Short",
4+
"1": "Medium length option",
5+
"2": "This is a very long option text that should vary the length significantly",
6+
"3": "Opt",
7+
"4": "Another medium length option here",
8+
"5": "Longer option with more words to make it longer",
9+
"6": "S",
10+
"7": "Medium",
11+
"8": "This is an even longer option text that will definitely vary the length",
12+
"9": "XL",
13+
}
14+
return texts[value] || `Option ${value}`
15+
}

0 commit comments

Comments
 (0)