🐛 fix: Update Empty component to support border prop and adjust usage in various pages

This commit is contained in:
web
2025-09-23 05:46:21 -07:00
parent bb0a811432
commit ce9ab89c1c
6 changed files with 26 additions and 22 deletions
+10 -2
View File
@@ -1,6 +1,14 @@
export default function Empty({ description }: { description?: React.ReactNode }) {
export default function Empty({
description,
border,
}: {
description?: React.ReactNode;
border?: boolean;
}) {
return (
<div className='flex flex-col items-center justify-center p-6 py-16'>
<div
className={`flex flex-col items-center justify-center p-6 py-16 ${border ? 'rounded-xl border' : ''}`}
>
<svg
width='64'
height='41'