-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
28 lines (23 loc) · 1.22 KB
/
constants.ts
File metadata and controls
28 lines (23 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { KeypadButton } from './types';
export const CALCULATOR_BUTTONS: KeypadButton[] = [
{ label: 'C', value: 'clear', type: 'action', className: 'text-red-400' },
{ label: '(', value: '(', type: 'scientific' },
{ label: ')', value: ')', type: 'scientific' },
{ label: '÷', value: '/', type: 'operator', className: 'text-neon-blue' },
{ label: '7', value: '7', type: 'number' },
{ label: '8', value: '8', type: 'number' },
{ label: '9', value: '9', type: 'number' },
{ label: '×', value: '*', type: 'operator', className: 'text-neon-blue' },
{ label: '4', value: '4', type: 'number' },
{ label: '5', value: '5', type: 'number' },
{ label: '6', value: '6', type: 'number' },
{ label: '-', value: '-', type: 'operator', className: 'text-neon-blue' },
{ label: '1', value: '1', type: 'number' },
{ label: '2', value: '2', type: 'number' },
{ label: '3', value: '3', type: 'number' },
{ label: '+', value: '+', type: 'operator', className: 'text-neon-blue' },
{ label: '.', value: '.', type: 'number' },
{ label: '0', value: '0', type: 'number' },
{ label: '⌫', value: 'backspace', type: 'action' },
{ label: '=', value: '=', type: 'action', className: 'bg-neon-blue text-black font-bold' },
];