mirror of
https://github.com/supabase/supabase.git
synced 2026-09-07 02:20:52 +08:00
* Add all missing libraries in the packages/apps. * Add all missing Vitest imports to the tests. * Add some missing exports to ui. * Fix the admonition export. * Fix various minor bugs. * Migrate the ui package to use vitest.
17 lines
360 B
TypeScript
17 lines
360 B
TypeScript
import { cn as uiCN } from 'ui'
|
|
|
|
export const cn = uiCN
|
|
|
|
export function formatDate(input: string | number): string {
|
|
const date = new Date(input)
|
|
return date.toLocaleDateString('en-US', {
|
|
month: 'long',
|
|
day: 'numeric',
|
|
year: 'numeric',
|
|
})
|
|
}
|
|
|
|
export function absoluteUrl(path: string) {
|
|
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`
|
|
}
|