import { Button } from "@dashboard/components/Button"; import Hr from "@dashboard/components/Hr"; import { buttonMessages } from "@dashboard/intl"; import { CardActions, Typography } from "@material-ui/core"; import React from "react"; import { FormattedMessage } from "react-intl"; import { messages } from "./messages"; import { useActionsStyles } from "./styles"; interface AppListCardActionsProps { releaseDate: string | undefined; installHandler?: () => void; vercelDeployHandler?: () => void; } const AppListCardActions: React.FC = ({ releaseDate, installHandler, vercelDeployHandler, }) => { const classes = useActionsStyles(); if (!installHandler && !vercelDeployHandler && !releaseDate) { return null; } return ( <>
{vercelDeployHandler && ( )} {installHandler && ( )} {releaseDate && ( )} ); }; AppListCardActions.displayName = "AppListCardActions"; export default AppListCardActions;