mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
27 lines
565 B
TypeScript
27 lines
565 B
TypeScript
import { Button } from "~/components";
|
|
|
|
interface Props {
|
|
title: string;
|
|
onOk: () => void;
|
|
}
|
|
|
|
export const UploadSuccess = ({ title, onOk }: Props) => {
|
|
return (
|
|
<div {...{ className: "obj-uploader-modal-success-view" }}>
|
|
<div
|
|
{...{
|
|
className: "uploader-message",
|
|
}}>{`Added ${title} to objects`}</div>
|
|
<div className="mt-6 flex justify-end gap-2">
|
|
<Button
|
|
{...{
|
|
onClick: onOk,
|
|
variant: "primary",
|
|
}}>
|
|
Ok
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|