All files / components/shared/three/ui KoreanPanel.tsx

66.66% Statements 2/3
0% Branches 0/2
0% Functions 0/1
66.66% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42                                                                    7x           7x  
/**
 * KoreanPanel - Three.js-compatible panel container component
 * 
 * Provides a styled container with Korean cyberpunk theming
 * 
 * Now refactored to use BasePanel for consistent styling
 * 
 * @module components/three
 */
 
import React from "react";
import { BasePanel, type BasePanelProps } from "../../base";
 
/**
 * Props for KoreanPanel component
 * Extends BasePanelProps for consistency
 */
export interface KoreanPanelProps extends Omit<BasePanelProps, "isMobile"> {
  // All props inherited from BasePanel
}
 
/**
 * KoreanPanel Component
 * 
 * A container component with Korean cyberpunk styling.
 * Now uses BasePanel internally for consistent styling and reduced duplication.
 * 
 * @example
 * ```tsx
 * <KoreanPanel variant="bordered" padding={20}>
 *   <h1>Panel Content</h1>
 * </KoreanPanel>
 * ```
 */
export const KoreanPanel: React.FC<KoreanPanelProps> = ({ testId, ...rest }) => {
  // Simply delegate to BasePanel - all logic is now centralized
  // Default testId to "korean-panel" for backward compatibility
  return <BasePanel testId={testId ?? "korean-panel"} {...rest} />;
};
 
KoreanPanel.displayName = "KoreanPanel";