0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/apps/admin-x-settings/src/components/settings/advanced/integrations/IntegrationHeader.tsx
Peter Zimon 81f13012e3
AdminX integrations — static components (#17713)
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
2023-08-15 12:20:46 +02:00

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;