import React from 'react';

interface ProjectPriceProps {
  price: string;
  name?: string;
}

const ProjectPrice: React.FC<ProjectPriceProps> = ({ price, name }) => {
  return (
    <div className="flex flex-col self-stretch py-1 gap-1 rounded-xl text-primary">
      <div className="hidden md:flex flex-col items-start pb-[1px]">
        <span className="text-sm">
          {"السعر"}
        </span>
      </div>
      <div className="hidden md:flex items-center mr-[1px] gap-1">
        <span className="text-xl">
          {price}
        </span>
        <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
          <g clipPath="url(#clip0_4232_4947)">
            <path d="M17.3804 15.2793C17.2981 15.6181 17.1852 15.9469 17.0425 16.2627L11.2056 17.373C11.2879 17.0344 11.4007 16.7054 11.5435 16.3896L17.3804 15.2793Z" fill="#052531" stroke="#052531" />
            <path d="M17.3851 12.8339C17.7063 12.1968 17.9187 11.5051 18 10.7799L12.7051 11.7875V9.85051L17.385 8.96067C17.7062 8.32356 17.9185 7.63187 17.9998 6.90664L12.7049 7.91339V0.947429C11.8936 1.35503 11.173 1.89758 10.5873 2.53756V8.31625L8.46967 8.71898V0C7.65833 0.407453 6.93778 0.950151 6.35206 1.59013V9.12156L1.61387 10.0224C1.29267 10.6595 1.08019 11.3512 0.998683 12.0765L6.35206 11.0585V13.4978L0.61487 14.5887C0.293664 15.2258 0.0813422 15.9175 0 16.6427L6.00523 15.5008C6.49408 15.4099 6.91425 15.1513 7.18741 14.7954L8.28874 13.3345V13.3342C8.40306 13.1831 8.46967 13.0008 8.46967 12.8045V10.6558L10.5873 10.2531V14.127L17.385 12.8336L17.3851 12.8339Z" fill="#052531" />
          </g>
          <defs>
            <clipPath id="clip0_4232_4947">
              <rect width="18" height="18" fill="white" />
            </clipPath>
          </defs>
        </svg>
      </div>
      <div className="flex md:hidden items-center mr-[1px] gap-1">
        <span className="text-lg">
          {name}
        </span>
      </div>
    </div>
  );
};

export default ProjectPrice;
