pitch-invader
Version:
React library designed to simplify the process of creating and managing a football (soccer) starting lineup.
19 lines (17 loc) • 1.07 kB
TypeScript
import { ColorSettings, DISPLAY_SHIRT_ATTRIBUTES, Player, Position } from '../../../types/index.js';
import { HandleFormationChange, HandlePositionClick } from '../types/index.js';
import { default as React } from 'react';
interface RenderPositionsProps {
playerPositions: Position[];
selectedPlayers: Player[];
selectedPlayerFromBench: Player | null;
removePlayerFromPitch: (e: React.MouseEvent<SVGSVGElement>, index: number) => void;
screenWidth: number;
handlePositionClick: HandlePositionClick;
shirtDisplayType: DISPLAY_SHIRT_ATTRIBUTES;
colorSettings: ColorSettings;
lang: string | null;
}
export declare function renderPositions({ playerPositions, selectedPlayers, selectedPlayerFromBench, removePlayerFromPitch, screenWidth, handlePositionClick, shirtDisplayType, colorSettings, lang }: RenderPositionsProps): import("react/jsx-runtime").JSX.Element[];
export declare function renderFormationSelector(handleFormationChange: HandleFormationChange, formationsData: string[]): import("react/jsx-runtime").JSX.Element;
export {};