import React, { useState } from "react"; import { Button } from '../../elements/Button' import { Block } from '../../elements/Block' import './style.css' import { MyMap } from "../../сomponents/map"; import Sidebar from "react-sidebar"; export interface PlaceCardIE{ title:string, description: string, icon: string, location: number[] } export interface TourCardIE{ name:string, description:string, days:number, points: PlaceCardIE[], imageURL?: string } export const PlaceCard: React.FC = (props) =>{ return(
{props.title}
{props.description.slice(0,50)}
); } export const TourCard:React.FC = (props) =>{ const [showMap, setShowMap] = useState(false) return(
{/* } open={showMap} styles={{ sidebar: { background: "white" } }} > */}
{props.name}
{props.days} дней,
{props.points.length} мест
{ props.points.map((value, index) => ) }
); }