Files
mtdb_movie/common/resources/client/auth/ui/account-settings/account-settings-panel.tsx
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

33 lines
757 B
TypeScript
Executable File

import {ReactNode} from 'react';
interface Props {
id: string;
title: ReactNode;
titleSuffix?: ReactNode;
children: ReactNode;
actions?: ReactNode;
}
export function AccountSettingsPanel({
id,
title,
titleSuffix,
children,
actions,
}: Props) {
return (
<section
id={id}
className="mb-24 w-full rounded-panel border bg px-24 py-20"
>
<div className="flex items-center gap-14 border-b pb-10">
<div className="text-lg font-light">{title}</div>
{titleSuffix && <div className="ml-auto">{titleSuffix}</div>}
</div>
<div className="pt-24">{children}</div>
{actions && (
<div className="mt-36 flex justify-end border-t pt-10">{actions}</div>
)}
</section>
);
}