[TASK] Migrate Modal to TypeScript