feat(admin,admin-ui,medusa): Add Medusa Admin plugin (#3334)

This commit is contained in:
Kasper Fabricius Kristensen
2023-03-03 10:09:16 +01:00
committed by GitHub
parent d6b1ad1ccd
commit 40de54b010
928 changed files with 85441 additions and 384 deletions

View File

@@ -0,0 +1,27 @@
import clsx from "clsx"
import React from "react"
import { Toast } from "react-hot-toast"
export type TableToasterContainerProps = {
children: React.ReactElement[] | React.ReactElement | React.ReactNode
toast?: Toast
}
export const TableToasterContainer = ({
children,
toast,
}: TableToasterContainerProps) => {
return (
<div
className={clsx({
"animate-enter": toast?.visible,
"animate-leave": !toast?.visible,
})}
{...toast?.ariaProps}
>
<div className="flex items-center rounded-rounded bg-grey-90 px-base py-3.5">
{children}
</div>
</div>
)
}