import { __ } from '@wordpress/i18n';
import LianaMigration from '../shared/LianaMigration';
type DashboardBoxProps = {
title: string;
description: string;
url: string;
isPro?: boolean;
renderIcon?: () => JSX.Element;
};
const DashboardBox = ( props: DashboardBoxProps ) => {
return (
{ props.title }
{ props.renderIcon ? props.renderIcon() : null }
{ props.title }
{ props.isPro ? (
{ __( 'Pro', 'liana-with-growthstack' ) }
) : null }
);
};
type DashboardProps = {
endpointDashboard: string;
assetsFolder: string;
migrationEndpoint: string;
migrationStatus: string;
urlAnalytics: string;
urlABTesting: string;
urlPersonalization: string;
urlForms: string;
urlSettings: string;
urlSupport: string;
};
export default function Dashboard( props: DashboardProps ) {
const {
migrationEndpoint,
migrationStatus,
urlAnalytics,
urlABTesting,
urlPersonalization,
urlForms,
urlSettings,
urlSupport,
} = props;
return (
<>
{ __( 'Dashboard', 'liana-with-growthstack' ) }
(
) }
/>
(
) }
/>
(
) }
/>
(
) }
/>
(
) }
/>
(
) }
/>
>
);
}