mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
refs. https://github.com/TryGhost/Product/issues/3729 - added static setting group for Integrations in AdminX - added static built-in integration modals with forms - added static custom integration list
30 lines
No EOL
725 B
TypeScript
30 lines
No EOL
725 B
TypeScript
import React from 'react';
|
|
|
|
interface IntegrationHeaderProps {
|
|
icon?: React.ReactNode;
|
|
title?: React.ReactNode;
|
|
detail?: React.ReactNode;
|
|
extra?: React.ReactNode;
|
|
}
|
|
|
|
const IntegrationHeader: React.FC<IntegrationHeaderProps> = ({
|
|
icon,
|
|
title,
|
|
detail,
|
|
extra
|
|
}) => {
|
|
return (
|
|
<div className='flex w-full gap-4'>
|
|
<div className='h-14 w-14'>{icon}</div>
|
|
<div className='flex flex-col'>
|
|
<h3>{title}</h3>
|
|
<div className='text-grey-600'>{detail}</div>
|
|
{extra && (
|
|
<div className='mt-4'>{extra}</div>
|
|
)}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default IntegrationHeader; |