import { CustomTypeFormat } from "@slicemachine/manager";
import React from "react";
import { Card, Flex, Link, Text } from "theme-ui";
import { CUSTOM_TYPES_CONFIG } from "@/features/customTypes/customTypesConfig";
import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
type AssociatedDocumentsCardProps = {
ctName: string;
numberOfDocuments: number;
link: string;
isOverLimit?: boolean;
};
export const AssociatedDocumentsCard: React.FC<
AssociatedDocumentsCardProps
> = ({ ctName, numberOfDocuments, link, isOverLimit = false }) => (
{ctName}
{numberOfDocuments} documents
View documents
);
export const CustomTypesReferencesCard: React.FC<{
format: CustomTypeFormat;
id: string;
name: string;
}> = ({ format, id, name }) => (
{name}
Missing Slices
View {CUSTOM_TYPES_MESSAGES[format].name({ start: false, plural: false })}
);