Hook up theme and clear responses

This commit is contained in:
Gregory Schier
2023-02-24 12:13:30 -08:00
parent 1dbb08c045
commit 95303648cc
10 changed files with 154 additions and 155 deletions

View File

@@ -3,14 +3,25 @@ import {
CameraIcon,
GearIcon,
HomeIcon,
MoonIcon,
PaperPlaneIcon,
SunIcon,
TriangleDownIcon,
UpdateIcon,
} from '@radix-ui/react-icons';
import classnames from 'classnames';
import { NamedExoticComponent } from 'react';
type IconName = 'archive' | 'home' | 'camera' | 'gear' | 'triangle-down' | 'paper-plane' | 'update';
type IconName =
| 'archive'
| 'home'
| 'camera'
| 'gear'
| 'triangle-down'
| 'paper-plane'
| 'update'
| 'sun'
| 'moon';
const icons: Record<IconName, NamedExoticComponent<{ className: string }>> = {
'paper-plane': PaperPlaneIcon,
@@ -20,6 +31,8 @@ const icons: Record<IconName, NamedExoticComponent<{ className: string }>> = {
gear: GearIcon,
home: HomeIcon,
update: UpdateIcon,
sun: SunIcon,
moon: MoonIcon,
};
export interface IconProps {