Files
Alberto-Audrix 32a36cceff
CI / lint-and-test (push) Canceled after 0s
first commit
2026-07-28 08:55:05 +07:00

22 lines
753 B
TypeScript

import React from 'react';
const RoleSection: React.FC<{
title: string;
icon: React.ReactNode;
borderColor: string;
children: React.ReactNode;
}> = ({ title, icon, borderColor, children }) => (
<div className="mb-12">
<div className={`flex items-center gap-4 mb-4 pl-4 border-l-4 ${borderColor}`}>
<span className="text-2xl text-gray-700">{icon}</span>
<h2 className="text-2xl font-bold text-gray-800">{title}</h2>
</div>
<div className="relative">
<div className="flex overflow-x-auto gap-6 xl:gap-10 pb-4 px-2">{children}</div>
<div className="absolute top-0 right-0 h-full w-12 bg-gradient-to-l from-gray-50 to-transparent pointer-events-none"></div>
</div>
</div>
);
export default RoleSection;