mirror of
https://github.com/makeplane/plane.git
synced 2025-12-21 22:29:36 +01:00
* refactor: remove barrel exports from some compoennt modules * refactor: remove barrel exports from issue components * refactor: remove barrel exports from page components * chore: update type improts * refactor: remove barrel exports from cycle components * refactor: remove barrel exports from dropdown components * refactor: remove barrel exports from ce components * refactor: remove barrel exports from some more components * refactor: remove barrel exports from profile and sidebar components * chore: update type imports * refactor: remove barrel exports from store hooks * chore: dynamically load sticky editor * fix: lint * chore: revert sticky dynamic import * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
// plane imports
|
|
import { MAX_FILE_SIZE } from "@plane/constants";
|
|
// hooks
|
|
import { useInstance } from "@/hooks/store/use-instance";
|
|
|
|
type TReturnProps = {
|
|
maxFileSize: number;
|
|
};
|
|
|
|
export const useFileSize = (): TReturnProps => {
|
|
// store hooks
|
|
const { config } = useInstance();
|
|
|
|
return {
|
|
maxFileSize: config?.file_size_limit ?? MAX_FILE_SIZE,
|
|
};
|
|
};
|