mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import { FC } from 'react'
|
|
import { Badge, Button } from 'ui'
|
|
|
|
import { Project } from 'types'
|
|
|
|
interface Props {
|
|
project: Project
|
|
onSelectRestore: () => void
|
|
onSelectDelete: () => void
|
|
}
|
|
|
|
const PausedProjectCard: FC<Props> = ({
|
|
project,
|
|
onSelectRestore = () => {},
|
|
onSelectDelete = () => {},
|
|
}) => {
|
|
return (
|
|
<li className="col-span-1 flex rounded-md shadow-sm">
|
|
<a className="col-span-3 w-full md:col-span-1 ">
|
|
<div
|
|
className={[
|
|
'bg-panel-header-light dark:bg-panel-header-dark',
|
|
'hover:bg-bg-alt-light dark:hover:bg-bg-alt-dark',
|
|
'border border-border-secondary-light dark:border-border-secondary-dark',
|
|
'hover:border-border-secondary-hover-light dark:hover:border-border-secondary-hover-dark',
|
|
'h-32 rounded p-4',
|
|
'flex flex-col justify-between transition duration-150 ease-in-out',
|
|
].join(' ')}
|
|
>
|
|
<div className="flex items-center justify-between space-x-2">
|
|
<h5 className="m-0 truncate">{project.name}</h5>
|
|
<Badge color="yellow" dot>
|
|
Paused
|
|
</Badge>
|
|
</div>
|
|
<div className="flex items-center space-x-2">
|
|
<Button size="tiny" onClick={() => onSelectRestore()}>
|
|
Restore
|
|
</Button>
|
|
<Button size="tiny" type="outline" onClick={() => onSelectDelete()}>
|
|
Delete
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</li>
|
|
)
|
|
}
|
|
|
|
export default PausedProjectCard
|