diff --git a/src/components/LeftPanel/TypeListItem.tsx b/src/components/LeftPanel/TypeListItem.tsx new file mode 100644 index 0000000..3c5d6a8 --- /dev/null +++ b/src/components/LeftPanel/TypeListItem.tsx @@ -0,0 +1,38 @@ +import { useTheme } from '../../context/ThemeContext'; +import type { QRTypeConfig } from '../../config/qrTypes'; + +interface Props { + config: QRTypeConfig; + selected: boolean; + onClick: () => void; +} + +export function TypeListItem({ config, selected, onClick }: Props) { + const { isDark } = useTheme(); + const thumb = isDark ? config.thumbDark : config.thumb; + + return ( + + ); +}