"use client"; import { Eye, Pencil, Image, Upload, Film, FolderPlus, User, Shield, LucideIcon } from "lucide-react"; import { OAuthScopeInfo } from "../../interfaces/oauth.interface"; import { MicroLabel } from "../../../../components/typography"; export interface OAuthScopeListProps { /** List of requested scopes */ scopes: OAuthScopeInfo[]; } /** Map scope icons to Lucide components */ const SCOPE_ICONS: Record = { eye: Eye, pencil: Pencil, image: Image, upload: Upload, film: Film, "folder-plus": FolderPlus, user: User, shield: Shield, }; /** * List of requested OAuth scopes for consent display */ export function OAuthScopeList({ scopes }: OAuthScopeListProps) { if (scopes.length === 0) { return null; } return (
This will allow the application to:
); }