import { ReactNode } from 'react'; import { Icon, DataTable, DataColumn, DataTableProps } from '@umami/react-zen'; import { LinkButton } from '@/components/common/LinkButton'; import { useMessages, useNavigation } from '@/components/hooks'; import { SquarePen } from '@/components/icons'; export interface WebsitesTableProps extends DataTableProps { showActions?: boolean; allowEdit?: boolean; allowView?: boolean; renderLink?: (row: any) => ReactNode; } export function WebsitesTable({ showActions, renderLink, ...props }: WebsitesTableProps) { const { formatMessage, labels } = useMessages(); const { renderUrl } = useNavigation(); return ( {renderLink} {showActions && ( {(row: any) => { const websiteId = row.id; return ( ); }} )} ); }