403Webshell
Server IP : 217.154.3.148  /  Your IP : 216.73.216.90
Web Server : Apache
System : Linux blissful-wright.217-154-3-148.plesk.page 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : gracious-boyd_hfhh1h8vo9n ( 10000)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/gracious-boyd.217-154-3-148.plesk.page/nextjs/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/gracious-boyd.217-154-3-148.plesk.page/nextjs/src/components/SceneSelector.tsx
'use client';

import React from 'react';
import type { TileScene } from '@/src/config/scenes';

type SceneSelectorProps = {
  scenes: TileScene[];
  selectedSceneId: string | null;
  onSelect: (sceneId: string) => void;
};

export default function SceneSelector({ scenes, selectedSceneId, onSelect }: SceneSelectorProps) {
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
      {scenes.map((scene) => {
        const active = scene.id === selectedSceneId;
        return (
          <button
            key={scene.id}
            type="button"
            onClick={() => onSelect(scene.id)}
            style={{
              display: 'flex',
              alignItems: 'center',
              gap: 12,
              padding: 10,
              borderRadius: 10,
              border: active ? '2px solid #2563eb' : '1px solid #d1d5db',
              background: '#fff',
              cursor: 'pointer',
              textAlign: 'left',
            }}
          >
            <div
              style={{
                width: 72,
                height: 48,
                borderRadius: 8,
                overflow: 'hidden',
                border: '1px solid #e5e7eb',
                backgroundColor: '#f3f4f6',
                flexShrink: 0,
              }}
            >
              <img
                src={scene.imageUrl}
                alt={scene.label}
                style={{ width: '100%', height: '100%', objectFit: 'cover' }}
              />
            </div>
            <div>
              <div style={{ fontWeight: 600, color: '#111827' }}>{scene.label}</div>
              <div style={{ fontSize: 12, color: '#6b7280' }}>
                {scene.cols} × {scene.rows} Fliesen
              </div>
            </div>
          </button>
        );
      })}
    </div>
  );
}

Youez - 2016 - github.com/yon3zu
LinuXploit