(min: number = 2, max: number = 5)
| 35 | ] |
| 36 | |
| 37 | const getRandomFiles = (min: number = 2, max: number = 5) => { |
| 38 | const count = Math.floor(Math.random() * (max - min + 1)) + min // Random number between min and max |
| 39 | const shuffled = [...POSSIBLE_FILES].sort(() => 0.5 - Math.random()) |
| 40 | return shuffled.slice(0, count) |
| 41 | } |
| 42 | |
| 43 | type PreviewTheme = 'default' | 'terminal-y' | 'retro' | 'light' |
| 44 |
no outgoing calls
no test coverage detected