jira/apps/web/core/components/settings/control-item.tsx
2026-03-02 20:40:50 +05:30

25 lines
760 B
TypeScript

/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
type Props = {
control: React.ReactNode;
description: string;
title: React.ReactNode;
};
export function SettingsControlItem(props: Props) {
const { control, description, title } = props;
return (
<div className="flex w-full flex-col items-start gap-4 py-3 md:flex-row md:items-center md:justify-between md:gap-8">
<div className="flex flex-col gap-1">
<h4 className="text-body-sm-medium text-primary">{title}</h4>
<p className="text-caption-md-regular text-secondary">{description}</p>
</div>
<div className="shrink-0">{control}</div>
</div>
);
}