vat_wms/resources/js/Components/ActionSection.tsx
2025-05-13 12:32:55 +02:00

26 lines
613 B
TypeScript

import React, { PropsWithChildren } from 'react';
import SectionTitle from '@/Components/SectionTitle';
interface Props {
title: string;
description: string;
}
export default function ActionSection({
title,
description,
children,
}: PropsWithChildren<Props>) {
return (
<div className="md:grid md:grid-cols-3 md:gap-6">
<SectionTitle title={title} description={description} />
<div className="mt-5 md:mt-0 md:col-span-2">
<div className="px-4 py-5 sm:p-6 bg-white dark:bg-gray-800 shadow-sm sm:rounded-lg">
{children}
</div>
</div>
</div>
);
}