import React from 'react'; import Text from '../Text/Text'; /** * A type that represents the flags that a course can have. */ export type Flag = 'WR' | 'QR' | 'GC' | 'CD' | 'E' | 'II'; export const flagMap: Record = { Writing: 'WR', 'Quantitative Reasoning': 'QR', 'Global Cultures': 'GC', 'Cultural Diversity in the United States': 'CD', Ethics: 'E', 'Independent Inquiry': 'II', }; interface Props { label: Flag; } /** * A reusable chip component that follows the design system of the extension. * @returns */ export function Chip({ label }: React.PropsWithChildren): JSX.Element { return ( {label} ); }